From: | Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru> |
---|---|
To: | Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: File name as application name in regression tests and elsewhere |
Date: | 2017-12-18 12:34:35 |
Message-ID: | 20171218123435.GE30771@e733.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello Andrew,
> I was doing some work over the weekend and it occurred to me that it
> would be quite nice to have the input file name from regression tests
> set as the application name, and then use a log_line_prefix setting
> including %a, so that this would appear on the logs.
>
> My first thought was to alter all the tests with something like "SET
> application_name 'testname.sql';", but then I thought maybe a better way
> would be to provide psql with a switch (--file-application-name ?) that
> would do this for us, and use it in the regression suite. That should be
> a pretty small patch and could be more generally useful.
>
> Thoughts?
Personally, I see how it could be useful and don't see any drawbacks of
such a patch. I think it's a good idea.
--
Best regards,
Aleksander Alekseev
From | Date | Subject | |
---|---|---|---|
Next Message | Andrey Borodin | 2017-12-18 12:36:34 | Re: Tracking of page changes for backup purposes. PTRACK [POC] |
Previous Message | Andrew Dunstan | 2017-12-18 11:59:26 | File name as application name in regression tests and elsewhere |