]> granicus.if.org Git - postgresql/commitdiff
Change replication connection log format to allow for a database
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 24 Mar 2010 21:25:50 +0000 (21:25 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 24 Mar 2010 21:25:50 +0000 (21:25 +0000)
called replication. Add host and port details, following format
of messages in BackendInitialize().

src/backend/utils/init/postinit.c

index 6a92ede6f9b68dd83d705a7d6dbef7790a5c0ef4..87895acdf66701e2adcdb3a417a26a9e689dc9de 100644 (file)
@@ -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",