mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
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.
This commit is contained in:
src/test
@@ -409,6 +409,7 @@ sub init
|
||||
open my $conf, ">>$pgdata/postgresql.conf";
|
||||
print $conf "\n# Added by PostgresNode.pm\n";
|
||||
print $conf "fsync = off\n";
|
||||
print $conf "log_line_prefix = '%m [%p] %q%a '\n";
|
||||
print $conf "log_statement = all\n";
|
||||
print $conf "port = $port\n";
|
||||
|
||||
|
Reference in New Issue
Block a user