pgsql: Fix startup so that log prefix %h works for the log_connections - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix startup so that log prefix %h works for the log_connections
Date
Msg-id E1aOAO9-0005kF-IJ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix startup so that log prefix %h works for the log_connections message.

We entirely randomly chose to initialize port->remote_host just after
printing the log_connections message, when we could perfectly well do it
just before, allowing %h and %r to work for that message.  Per gripe from
Artem Tomyuk.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b8682a7155bee06667c5773e1ca6499a670338b0

Modified Files
--------------
src/backend/postmaster/postmaster.c |   14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix startup so that log prefix %h works for the log_connections
Next
From: Tom Lane
Date:
Subject: pgsql: Fix startup so that log prefix %h works for the log_connections