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)
commit9bbfca8fde6109ce84543b9d71bcbf1c3b144b29
tree4438d2ce3c58f3ebaa4c4ba8f075e3d772a71f5e
parent7a47262ce6b3370564b005b05279b0e07fa15bba
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