diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-24 21:25:50 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-24 21:25:50 +0000 |
commit | e6867eebd4bebfde2aaeaf6bf0d5c822a3c83298 (patch) | |
tree | 746cad9c218e6e676447ee1b429a4ff75927d663 /src/backend/utils/init/postinit.c | |
parent | 08882ce74cd6775bd8446eb7343c61a3e5648620 (diff) | |
download | postgresql-e6867eebd4bebfde2aaeaf6bf0d5c822a3c83298.tar.gz postgresql-e6867eebd4bebfde2aaeaf6bf0d5c822a3c83298.zip |
Change replication connection log format to allow for a database
called replication. Add host and port details, following format
of messages in BackendInitialize().
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 6a92ede6f9b..87895acdf66 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.206 2010/03/21 00:17:59 petere Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.207 2010/03/24 21:25:50 sriggs Exp $ * * *------------------------------------------------------------------------- @@ -222,8 +222,11 @@ PerformAuthentication(Port *port) */ if (am_walsender) ereport(LOG, - (errmsg("connection authorized: user=%s database=%s", - port->user_name, "replication"))); + (errmsg("replication connection authorized: user=%s host=%s%s%s", + port->user_name, + port->remote_host, port->remote_port[0] ? " port=" : "", + port->remote_port))); + else if (Log_connections) ereport(LOG, (errmsg("connection authorized: user=%s database=%s", |