add space at the end of log_line_prefix in pg_regress
authorTomas Vondra <[email protected]>
Sun, 22 Jan 2017 19:11:37 +0000 (20:11 +0100)
committerTomas Vondra <[email protected]>
Sun, 22 Jan 2017 19:11:37 +0000 (20:11 +0100)
The GUC was missing a space at the end, so the log lines looke like

    ...,global_session=coord1_8874STATEMENT: ...

which is not particularly readable. With the fix it's

    ...,global_session=coord1_8874 STATEMENT: ...

src/test/regress/pg_regress.c

index 9cea3fc401545f00ba04a412bf25bebc5d828632..ee8bdd538213ac2e75c0b447155f9ce714888827 100644 (file)
@@ -846,7 +846,7 @@ set_node_config_file(PGXCNodeTypeNum node)
         * Set sequence_range to 1 for deterministic results
         */
        fputs("sequence_range = 1\n", pg_conf);
-       fputs("log_line_prefix = \'\%t [\%p]:xid[\%x-\%v] remote=\%R,coord=\%C,global_session=\%S\'\n", pg_conf);
+       fputs("log_line_prefix = \'\%t [\%p]:xid[\%x-\%v] remote=\%R,coord=\%C,global_session=\%S \'\n", pg_conf);
 
        /* Set GTM connection information */
        fputs("gtm_host = 'localhost'\n", pg_conf);