Skip to content

Extend pre-checks. Misc. Improvements: escape $, support arrays in pre_sql and workload_sql; support empty arrays

Vitaliy Kukharik requested to merge extend-pre-checks into master

Make sure that the options are specified in the correct format:

  • option=value in the 'pre_configs' option, and is an array.
  • The pgbench utility is specified in the 'workload_pgbench' option.
    • It is difficult to fully check the syntax of the command being executed without actually executing it. Therefore, we are adding only a basic check for the presence of the pgbench command.
    • Note: Analyze the result after executing the test.
  • SQL statement in the 'pre_sql' and 'workload_sql' options.
    • Skip it. It would be extremely difficult and inefficient to create a full-fledged SQL parser in a Bash script, given the complexity of the SQL syntax and the variety of possible commands and constructs.
    • Note: Analyze the result after executing the test.

Improvements

Edited by Vitaliy Kukharik

Merge request reports