pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Improve postmaster's logging of listen socket creation.
Date: Mon, 13 Mar 2017 23:43:13 -0400
Message-ID: <1206.1489462993@sss.pgh.pa.us> (raw)
In-Reply-To: <20170314033842.st7gifec55yigz2h@alap3.anarazel.de>
References: <E1cmS9K-0005Hf-3r@gemulon.postgresql.org>
	<CA+TgmoaNmzrGH_X+1Rnc6JBXKy3Jsg11V+XrEPZ1_Y8McvKE=A@mail.gmail.com>
	<20170314033842.st7gifec55yigz2h@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> I don't mind the new output, but I kinda wonder whether it's a good idea
> to include the '.s.PGSQL.5432' bit in the host and/or whether we
> shouldn't include the port in the TCP cases as well

Yeah, I've been thinking that maybe it should look like

2017-03-13 10:08:49.399 EDT [90059] LOG:  listening on IPv6 address "::1", port 5432
2017-03-13 10:08:49.399 EDT [90059] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2017-03-13 10:08:49.400 EDT [90059] LOG:  listening on Unix address "/tmp/.s.PGSQL.5432"

It would take a couple more lines of code to make that happen, but
it would future-proof the messages against the day we decide to
allow one server to respond to more than one port number ...

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (9+ messages)  latest in thread

Message-ID: <1206.1489462993@sss.pgh.pa.us>
Permalink:  ../1206.1489462993@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1206.1489462993@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Improve postmaster's logging of listen socket creation.
  In-Reply-To: <1206.1489462993@sss.pgh.pa.us>
  References: <E1cmS9K-0005Hf-3r@gemulon.postgresql.org> <CA+TgmoaNmzrGH_X+1Rnc6JBXKy3Jsg11V+XrEPZ1_Y8McvKE=A@mail.gmail.com> <20170314033842.st7gifec55yigz2h@alap3.anarazel.de> <1206.1489462993@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox