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

Reply via email to