Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmNPX-0008GJ-3x for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 16:28:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cmNPW-0001sZ-N7 for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 16:28:58 +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 1cmNO2-00074s-VY for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 16:27:27 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmNO0-0001Z4-4w for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 16:27:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 632295F794; Fri, 10 Mar 2017 11:27:22 -0500 (EST) Date: Fri, 10 Mar 2017 11:27:22 -0500 From: Stephen Frost To: Tom Lane Cc: Tels , Robert Haas , Joe Conway , "pgsql-hackers@postgresql.org" Subject: Re: Upgrading postmaster's log messages about bind/listen errors Message-ID: <20170310162722.GG9812@tamriel.snowman.net> References: <9564.1489091245@sss.pgh.pa.us> <19479.1489121003@sss.pgh.pa.us> <8371d0860a6019e5630bcdd2a96610ab.squirrel@sm.webmail.pair.com> <20170310135656.GD9812@tamriel.snowman.net> <12776.1489160501@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6+zbkgZlzZNNdywa" Content-Disposition: inline In-Reply-To: <12776.1489160501@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: 10:49:54 up 244 days, 17:14, 17 users, load average: 0.11, 0.09, 0.11 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 --6+zbkgZlzZNNdywa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > database system is ready to accept connections on (1.2.3.4) >=20 > That would be a problem from a couple of directions. First, it wouldn't > be unusual for there to be half a dozen addresses to list, not just one. > Even a default configuration would probably read like >=20 > database system is ready to accept connections on (127.0.0.1, ::1, /tmp/.= s.PGSQL.5432) Yeah, that's probably a bit much to have all on one line. > which doesn't seem very appetizing to me. Second, it would be > considerably messier to implement because the "ready to accept > connections" message comes out physically distant from the > StreamServerPort function, and we don't save the struct addrinfo list > past the end of that function. So I think the logging setup I had in > my patch is pretty much the only sane way to do it, and we just have > to decide whether it's worth exposing at default log level or not. I definitely think we should include it at the default log level. We certainly wouldn't be the first daemon process to do so (bind9 comes to mind, but I notice ntpd, nrpe, and strongswan do also, and probably some others). Thanks! Stephen --6+zbkgZlzZNNdywa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYwtPqAAoJEO1sijiDR2RVDysQAIhwFTuk3YjAOPQ4OGTWdZcx CefNQS9PaOE54Y7GTIpvZgEWvPS0/W4NVU9oKLA8tJ51B+jI7kUDGMgtGVI/xqP4 sDEnvy4UdFn7Yj7cDKRIPnGHmab5XJRKI8WA54M7b0TzrURzXzv8eimWDLqzk6D1 vtwbMQxEl9Dx+NIPG1fPgzzjJV8eKdsmzUYlC3AOk4rRnEtUmM8fGGUCUudbvBmK tA8yjc7PxStH175dUCU16Tu2h5VcaInqjISbw8Q3rQZeNDJnrxwK+WGzIooxAmFX XinsZ0YiMo9B+EcsG83lam7JADd1yPSNa7482eHh5+AUYQtKWNaxG7Mr0g4FNE1l md6Zn+xIUBGWLyEBiSgVPrYxieTj3wSqXm++v8CtdqA4QBoTCGHDbOE05ib2oLLz awDpgKhScUnfQ1L9tMfIXmg8+lCxd8DaDluDhBH5u6KDBkSt+lCVLWjMVv6zuRxy RIVwt8ieWS/wh2eP7ACjGeFN/6cnEvEXR8kiK43qwrqdqCJqCKYaJpWcVYRMi4hm mxE10x1AxKIdISCzMtvRVh7vGUxsGe9EZecgVX/oftS3tCi2/MWByoBxI6u9ZYRq bsn8c+HTXSzdvDfYb7jTRU8pUA+7ANAIcli0kqVio0SeZQt2OkRdpGrt6PVOx+RD wHWNPRjp6PaICK3GzoSJ =HR5A -----END PGP SIGNATURE----- --6+zbkgZlzZNNdywa--