]> granicus.if.org Git - postgresql/commit
Fix startup so that log prefix %h works for the log_connections message.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Jan 2016 20:38:33 +0000 (15:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Jan 2016 20:38:33 +0000 (15:38 -0500)
commitb043df093a356f0a1936999db3dfddade95c6ffb
treecddc5de18ded5b9b334ed6e81a25524782ac0f91
parentb1bc381446d7089164b92d52dab1a2d2872dba54
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.
src/backend/postmaster/postmaster.c