Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnknJ-0000Ua-Cw for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 11:39:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cnknI-0007Ru-4n for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 11:39:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cnklo-0004n1-Tz for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 11:37:41 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnklg-0008D2-Tj for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 11:37:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A766F5F794; Tue, 14 Mar 2017 07:37:01 -0400 (EDT) Date: Tue, 14 Mar 2017 07:37:01 -0400 From: Stephen Frost To: Tom Lane Cc: Andres Freund , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Improve postmaster's logging of listen socket creation. Message-ID: <20170314113701.GL9812@tamriel.snowman.net> References: <20170314033842.st7gifec55yigz2h@alap3.anarazel.de> <1206.1489462993@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6PdQRoX6SJijgiEZ" Content-Disposition: inline In-Reply-To: <1206.1489462993@sss.pgh.pa.us> 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: 07:34:41 up 248 days, 12:59, 18 users, load average: 0.07, 0.14, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 --6PdQRoX6SJijgiEZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Andres Freund 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 >=20 > Yeah, I've been thinking that maybe it should look like >=20 > 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" >=20 > 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 ... I certainly agree with adding the port for TCP. I also agree with Andres' point about the unix socket, though I'm tempted to suggest that we should just teach libpq to understand a straight unix socket being passed for host/-h rather than change what the server reports here.. Thanks! Stephen --6PdQRoX6SJijgiEZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYx9XdAAoJEO1sijiDR2RV+4AQALV+4Fl2Rj+nnSB2j/s3qPNe ceSaKc/MP7pdP3SPo8+OpZOYrAn6AiG/GSV4I+jFQa1tGCJwBT/k3pSm9mc1Sda4 9GNYxD0E1T9j05olY0ump2n21MX10g19XC7zHgcrTmmKQPmQjKuzcn3NNLpftYJ0 cQyI6huhYLQQWYFc+qKtogEeHzCuywPbCt3judf0M6a0Mj1DlsB2DfZm41KAMlfH i7TVKLsNQaAB1F5WTrTih5nhUlwDnDd+IveUkKRQ9O7rWHMRQa0/y4r2ZkCb/gC6 DMD5ABqgj7Y1HY1JtjjzPGvrre6Ts1e8WpGCtN3I1yfuweb+37t0QmrFyojGn6Hs fHaMBENTmzBddT2ugDA+QHGVHA51sjq1c26H0vsJi6hM/pWt2p9g44KYqSrrD/mc pqUEUxWPOKuQ+SPIWq1nEh8O6/ZIepA7N5vc2k/JIzTCpJUzGtnKmdsIyXgyg3Xg PzUDVwS9/NC/8orYHSFGyFiLvCwu/W4u29IIlesgWSDDj2vcxNiV5/E8qagzluiY Yj1w5vh+dunQPJC306wHpkeBQjHi9MkXuebMjL0E2Ax3XtfCOiIu7qyp9+TDuz0i biTz8+sWnLCHsxV5pP0zBP/ssYdWWydwAwyynmgy/5/Q35w7jVen3Fa1jJNiHN2u gCtlJmq2CYHa0La3QnOD =EIV0 -----END PGP SIGNATURE----- --6PdQRoX6SJijgiEZ--