diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-02 04:54:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-12-02 04:54:10 +0000 |
commit | 59ed94ad0c9f74a3f057f359316c845cedc4461e (patch) | |
tree | 0f52806e51b9741b5b95d7f0a45aa24c7b5a0c7e /src | |
parent | 3dfcf8cc15aeae3d30a0470b7d6bd5d4d462805d (diff) | |
download | postgresql-59ed94ad0c9f74a3f057f359316c845cedc4461e.tar.gz postgresql-59ed94ad0c9f74a3f057f359316c845cedc4461e.zip |
Mark application_name as GUC_REPORT so that the value will be reported back
to the client by the server. This might seem pretty pointless but apparently
it will help pgbouncer, and perhaps other connection poolers. Anyway it's
practically free to do so for the normal use-case where appname is only set
in the startup packet --- we're just adding a few more bytes to the initial
ParameterStatus response packet. Per comments from Marko Kreen.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/misc/guc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 04ba14c2dbb..f5db7783f19 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut <peter_e@gmx.net>. * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.524 2009/11/28 23:38:07 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.525 2009/12/02 04:54:10 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -2541,7 +2541,7 @@ static struct config_string ConfigureNamesString[] = {"application_name", PGC_USERSET, LOGGING, gettext_noop("Sets the application name to be reported in statistics and logs."), NULL, - GUC_IS_NAME | GUC_NOT_IN_SAMPLE + GUC_IS_NAME | GUC_REPORT | GUC_NOT_IN_SAMPLE }, &application_name, "", assign_application_name, NULL |