Fix startup so that log prefix %h works for the log_connections message.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b043df093a356f0a1936999db3dfddade95c6ffb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-01-26T20:38:33Z
Releases: 9.1.20
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.

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +8 −6