pgsql: Set log_line_prefix and application name in test drivers

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Set log_line_prefix and application name in test drivers
Date: 2016-10-01 01:32:48
Message-ID: E1bq9AW-0002FF-5Y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a4327296df7366ecc657b706a9b5e87aa921311a

Modified Files
--------------
src/test/perl/PostgresNode.pm | 1 +
src/test/perl/TestLib.pm | 2 ++
src/test/regress/pg_regress.c | 1 +
src/test/regress/pg_regress_main.c | 7 +++++++
4 files changed, 11 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-10-01 17:35:33 pgsql: Fix misplacement of submake-generated-headers prerequisites.
Previous Message Tom Lane 2016-10-01 00:41:09 pgsql: Improve error reporting in pg_upgrade's file copying/linking/rew