mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Ignore attempts to set "application_name" in the connection startup packet.
This avoids a useless connection retry and complaint in the postmaster log when receiving a connection from 8.5 or later libpq. Backpatch in all supported branches, but of course *not* HEAD.
This commit is contained in:
parent
c63dbfff83
commit
532ae854cc
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.10 2008/06/27 01:53:08 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.475.2.11 2009/12/02 17:41:46 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -1493,6 +1493,8 @@ retry1:
|
||||
port->user_name = pstrdup(valptr);
|
||||
else if (strcmp(nameptr, "options") == 0)
|
||||
port->cmdline_options = pstrdup(valptr);
|
||||
else if (strcmp(nameptr, "application_name") == 0)
|
||||
/* ignore for compatibility with libpq >= 8.5 */ ;
|
||||
else
|
||||
{
|
||||
/* Assume it's a generic GUC option */
|
||||
|
Loading…
Reference in New Issue
Block a user