pg_regress application_name
Started by Peter Eisentrautalmost 14 years ago2 messages
I figured it would be good if pg_regress reported its application_name
as "pg_regress" rather than "psql". Any objections to the attached
patch?
Attachments:
pg_regress-appname.patchtext/x-patch; charset=UTF-8; name=pg_regress-appname.patchDownload
diff --git i/src/test/regress/pg_regress.c w/src/test/regress/pg_regress.c
index 2f6b37b..1384223 100644
--- i/src/test/regress/pg_regress.c
+++ w/src/test/regress/pg_regress.c
@@ -691,6 +691,8 @@ initialize_environment(void)
{
char *tmp;
+ putenv("PGAPPNAME=pg_regress");
+
if (nolocale)
{
/*
Re: pg_regress application_name
On Sat, Feb 18, 2012 at 11:47, Peter Eisentraut <peter_e@gmx.net> wrote:
I figured it would be good if pg_regress reported its application_name
as "pg_regress" rather than "psql". Any objections to the attached
patch?
Sounds like a good idea to me, +1.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/