]> granicus.if.org Git - postgresql/commitdiff
pg_regress: Add application name setting
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 21 Feb 2012 14:45:19 +0000 (16:45 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 21 Feb 2012 14:45:19 +0000 (16:45 +0200)
Set the PGAPPNAME environment variable in pg_regress so that it
identifies itself as such instead of "psql".

src/test/regress/pg_regress.c

index 2f6b37bf3b5b65f7e4d6d7050e210aab9b74e4ec..13842231ce14f2b69d8b47c385613247af71dcf2 100644 (file)
@@ -691,6 +691,8 @@ initialize_environment(void)
 {
        char       *tmp;
 
+       putenv("PGAPPNAME=pg_regress");
+
        if (nolocale)
        {
                /*