pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Set log_line_prefix and application name in test drivers
Date: Sat, 01 Oct 2016 01:32:48 +0000
Message-ID: <E1bq9AW-0002FF-5Y@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1bq9AW-0002FF-5Y@gemulon.postgresql.org>
Permalink:  ../E1bq9AW-0002FF-5Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bq9AW-0002FF-5Y@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Set log_line_prefix and application name in test drivers
  In-Reply-To: <E1bq9AW-0002FF-5Y@gemulon.postgresql.org>
  References: <E1bq9AW-0002FF-5Y@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox