]> 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)
commitb8682a7155bee06667c5773e1ca6499a670338b0
tree6a14a886ee899fbb21d3d2cde0ca662f3a38c35b
parentcc988fbb0bf60a83b628b5615e6bade5ae9ae6f4
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