Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnSB3-0006Vy-Ku for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 15:46:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnSB3-000443-7a for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Mar 2017 15:46:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnSB1-0003xZ-F9 for pgsql-hackers@postgresql.org; Mon, 13 Mar 2017 15:46:27 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnSAx-0002ur-2F for pgsql-hackers@postgresql.org; Mon, 13 Mar 2017 15:46:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 453AE5F794; Mon, 13 Mar 2017 11:45:49 -0400 (EDT) Date: Mon, 13 Mar 2017 11:45:49 -0400 From: Stephen Frost To: Alvaro Herrera Cc: Tom Lane , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Improve postmaster's logging of listen socket creation. Message-ID: <20170313154549.GD9812@tamriel.snowman.net> References: <23987.1489414777@sss.pgh.pa.us> <20170313153123.snaadbjuiwxhgc73@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vZP3lXjYlP2egM7W" Content-Disposition: inline In-Reply-To: <20170313153123.snaadbjuiwxhgc73@alvherre.pgsql> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 11:37:22 up 247 days, 17:01, 18 users, load average: 0.40, 0.25, 0.16 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --vZP3lXjYlP2egM7W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Tom Lane wrote: > > Robert Haas writes: > > > So now on every startup I get this: > >=20 > > > 2017-03-13 10:08:49.399 EDT [90059] LOG: listening on IPv6 address "= ::1" > > > 2017-03-13 10:08:49.399 EDT [90059] LOG: listening on IPv4 address "= 127.0.0.1" > > > 2017-03-13 10:08:49.400 EDT [90059] LOG: listening on Unix address > > > "/tmp/.s.PGSQL.5432" > >=20 > > > I think the idea that this is worth three lines of log output (out of > > > a total of six) is hard to stomach. > >=20 > > You were in the minority before on the usefulness of this output, and > > I think you still are. Personally I've already found it useful to be > > able to check that buildfarm runs are binding to (only) the addresses > > they're supposed to. >=20 > I think it's good to have it, but I would argue that it should be a > single line that lists all the addresses instead. So, I'm fine with it as-is. Tom's point that it'd get to be a pretty long line is correct, imv, and other daemons that I've seen also tend to put them on independent lines and I don't hear many people complaining about those. This is NTP's output, for example: Mar 12 10:13:41 beorn ntpd[28719]: Listen and drop on 0 v6wildcard [::]:123 Mar 12 10:13:41 beorn ntpd[28719]: Listen and drop on 1 v4wildcard 0.0.0.0:= 123 Mar 12 10:13:41 beorn ntpd[28719]: Listen normally on 2 lo 127.0.0.1:123 Mar 12 10:13:41 beorn ntpd[28719]: Listen normally on 3 wlan0 192.168.1.191= :123 Mar 12 10:13:41 beorn ntpd[28719]: Listen normally on 4 lo [::1]:123 Mar 12 10:13:41 beorn ntpd[28719]: Listen normally on 5 wlan0 [fe80::bc2a:e= 1cf:2545:d08e%3]:123 Mar 12 10:13:41 beorn ntpd[28719]: Listening on routing socket on fd #22 fo= r interface updates And bind9 (aka named): Mar 10 10:53:05 tangmo named[7618]: listening on IPv6 interfaces, port 53 Mar 10 10:53:05 tangmo named[7618]: listening on IPv4 interface lo, 127.0.0= =2E1#53 Mar 10 10:53:05 tangmo named[7618]: listening on IPv4 interface eth0, 10.10= =2E5.10#53 Mar 10 10:53:05 tangmo named[7618]: listening on IPv4 interface eth0:ext, 1= 72.16.231.123#53 PowerDNS (aka pdns): Mar 12 17:15:57 dunmer pdns[26094]: UDP server bound to 0.0.0.0:53 Mar 12 17:15:57 dunmer pdns[26094]: UDPv6 server bound to [::]:53 Mar 12 17:15:57 dunmer pdns[26094]: TCP server bound to 0.0.0.0:53 Mar 12 17:15:57 dunmer pdns[26094]: TCPv6 server bound to [::]:53 Thanks! Stephen --vZP3lXjYlP2egM7W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYxr6sAAoJEO1sijiDR2RVrxwQALnV7+CZr2c1dnqmnMRRRf8E rqeBOFjfVKgVJTUOejiNOy35U/zQGQcn5pxHq+tOIc58TFqMSeQuP/L0WnyxQmcI cqK4ZKP2EAkliYTn89/2ALej8PwCsm518gzknZtrU6xWhdpvQP70UfPLhWms171e 2KhAmZ2dLy9weZ/Fu9+0dhJHXlN6PL/uc8WrTceCNPEj6TDTa0grLiMP5SGW1Z7t ZAINmL+DrYgeZKwxGTiL1zsUTtkwJXuT+iNvyYF2lH3j0lQA6oOQe/YVELCP3Kxo xRw0jD1RV2fY5OxMIJVKHp+PLZE6Btdpv4ur/dtKh+3va37lNKlsZQo8gqsY8/OG I2Z9QR+oDqQT1rVDa0YXN5ftrytp6QWIv6RV55UhE/pRmmWhM3AKi7l7/P1Rtu0G Ea9wELZeqN9o7v7pLpFpKwHxp9RNmWqgMv7se7pYvDES+rZtOepe1yiALCJ2z39+ RmMpAmBP9PmkfPEjBUaktw9KlrS80tDTeOU592t22d65ogwpKRDTMcW0MLKC5OWy c0BJ2R4lhCRRaPKnq3X7p3GDe4Uqtk7Ry3n4709IYPSPwvyqhDN3iO1f9RMGroJx TTLeF7FmewDadk1EX1QUh5RPhcf7MfjAS2L56E3RpXfhWRLCryper7SJG5tyuPuE t8zwXmz6noNSYsm8uc8m =xak+ -----END PGP SIGNATURE----- --vZP3lXjYlP2egM7W--