Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cndMo-00046L-7C for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 03:43:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cndMn-00073m-IS for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Mar 2017 03:43:21 +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 1cndMm-00072S-11 for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 03:43:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cndMi-0001HO-Ko for pgsql-hackers@postgresql.org; Tue, 14 Mar 2017 03:43:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2E3hDY5001207; Mon, 13 Mar 2017 23:43:13 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Improve postmaster's logging of listen socket creation. In-reply-to: <20170314033842.st7gifec55yigz2h@alap3.anarazel.de> References: <20170314033842.st7gifec55yigz2h@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 13 Mar 2017 20:38:42 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1205.1489462992.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 13 Mar 2017 23:43:13 -0400 Message-ID: <1206.1489462993@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 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 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 --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers