pgsql: Improve postmaster's logging of listen socket creation.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve postmaster's logging of listen socket creation.
Date: 2017-03-10 21:32:34
Message-ID: E1cmS9K-0005Hf-3r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Improve postmaster's logging of listen socket creation.

When one of the kernel calls in the socket()/bind()/listen() sequence
fails, include the specific address we're trying to bind to in the log
message. This greatly eases debugging of network misconfigurations.

Also, after successfully setting up a listen socket, report its address
in the log, to ease verification that the expected addresses were bound.
There was some debate about whether to print this message at LOG level or
only DEBUG1, but the majority of votes were for the former.

Discussion: https://postgr.es/m/9564.1489091245@sss.pgh.pa.us

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f9dfa5c9776649f769d537dd0923003b35f128de

Modified Files
--------------
doc/src/sgml/runtime.sgml | 8 ++++----
src/backend/libpq/pqcomm.c | 51 +++++++++++++++++++++++++++++++++++-----------
2 files changed, 43 insertions(+), 16 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-11 19:37:17 pgsql: Add a "subtransaction" command to PL/Tcl.
Previous Message Peter Geoghegan 2017-03-10 20:36:41 Re: pgsql: contrib/amcheck needs RecentGlobalXmin to be PGDLLIMPORT'ified.

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2017-03-10 21:45:20 Re: Need a builtin way to run all tests faster manner
Previous Message Robert Haas 2017-03-10 21:27:07 Re: Speed up Clog Access by increasing CLOG buffers