Commit e6867eeb authored by Simon Riggs's avatar Simon Riggs

Change replication connection log format to allow for a database

called replication. Add host and port details, following format
of messages in BackendInitialize().
parent 08882ce7
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -222,8 +222,11 @@ PerformAuthentication(Port *port)
*/ */
if (am_walsender) if (am_walsender)
ereport(LOG, ereport(LOG,
(errmsg("connection authorized: user=%s database=%s", (errmsg("replication connection authorized: user=%s host=%s%s%s",
port->user_name, "replication"))); port->user_name,
port->remote_host, port->remote_port[0] ? " port=" : "",
port->remote_port)));
else if (Log_connections) else if (Log_connections)
ereport(LOG, ereport(LOG,
(errmsg("connection authorized: user=%s database=%s", (errmsg("connection authorized: user=%s database=%s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment