Re: [HACKERS] pg_regress application_name
On Sat, Feb 18, 2012 at 11:47, Peter Eisentraut 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/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
[HACKERS] pg_regress application_name
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? 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) { /* -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers