Set log_line_prefix and application name in test drivers
Before pg_regress runs psql, set the application name to the test name. Similarly, set the application name to the test file name in the TAP tests. Also, set a default log_line_prefix that show the application name, as well as the PID and a time stamp. That way, the server log output can be correlated to the test input files, making debugging a bit easier.
Showing
- src/test/perl/PostgresNode.pm 1 addition, 0 deletionssrc/test/perl/PostgresNode.pm
- src/test/perl/TestLib.pm 2 additions, 0 deletionssrc/test/perl/TestLib.pm
- src/test/regress/pg_regress.c 1 addition, 0 deletionssrc/test/regress/pg_regress.c
- src/test/regress/pg_regress_main.c 7 additions, 0 deletionssrc/test/regress/pg_regress_main.c
Loading
Please register or sign in to comment