pgsql: Fix startup so that log prefix %h works for the log_connections

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix startup so that log prefix %h works for the log_connections
Date: 2016-01-26 20:38:57
Message-ID: E1aOAO9-0005kF-IJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2016-01-27 01:56:20 pgsql: Mostly mechanical cleanup of pgbench
Previous Message Tom Lane 2016-01-26 20:20:49 pgsql: Improve ResourceOwners' behavior for large numbers of owned obje