Skip to content

Commit e6867ee

Browse files
Change replication connection log format to allow for a database
called replication. Add host and port details, following format of messages in BackendInitialize().
1 parent 08882ce commit e6867ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/backend/utils/init/postinit.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.206 2010/03/21 00:17:59 petere Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.207 2010/03/24 21:25:50 sriggs Exp $
1212
*
1313
*
1414
*-------------------------------------------------------------------------
@@ -222,8 +222,11 @@ PerformAuthentication(Port *port)
222222
*/
223223
if (am_walsender)
224224
ereport(LOG,
225-
(errmsg("connection authorized: user=%s database=%s",
226-
port->user_name, "replication")));
225+
(errmsg("replication connection authorized: user=%s host=%s%s%s",
226+
port->user_name,
227+
port->remote_host, port->remote_port[0] ? " port=" : "",
228+
port->remote_port)));
229+
227230
else if (Log_connections)
228231
ereport(LOG,
229232
(errmsg("connection authorized: user=%s database=%s",

0 commit comments

Comments
 (0)