Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmHs6-00079i-Eu for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 10:34:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cmHs6-0007nH-1W for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2017 10:34:06 +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 1cmHs4-0007ic-EI for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 10:34:04 +0000 Received: from www4.webmail.pair.com ([66.39.3.58]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cmHrz-0002ec-UN for pgsql-hackers@postgresql.org; Fri, 10 Mar 2017 10:34:03 +0000 Received: by www4.webmail.pair.com (Postfix, from userid 65534) id 6BB67B424D1; Fri, 10 Mar 2017 05:33:57 -0500 (EST) Received: from 87.79.85.125 ([87.79.85.125]) (SquirrelMail authenticated user te_123@bloodgate.com) by sm.webmail.pair.com with HTTP; Fri, 10 Mar 2017 05:33:57 -0500 Message-ID: <8371d0860a6019e5630bcdd2a96610ab.squirrel@sm.webmail.pair.com> In-Reply-To: <19479.1489121003@sss.pgh.pa.us> References: <9564.1489091245@sss.pgh.pa.us> <19479.1489121003@sss.pgh.pa.us> Date: Fri, 10 Mar 2017 05:33:57 -0500 Subject: Re: Upgrading postmaster's log messages about bind/listen errors From: "Tels" To: "Tom Lane" Cc: "Robert Haas" , "Joe Conway" , "pgsql-hackers@postgresql.org" User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Pg-Spam-Score: -2.6 (--) 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 Moin, On Thu, March 9, 2017 11:43 pm, Tom Lane wrote: > Robert Haas writes: >> On Thu, Mar 9, 2017 at 4:01 PM, Joe Conway wrote: >>> On 03/09/2017 12:27 PM, Tom Lane wrote: >>>> For good measure I also added a DEBUG1 log message reporting >>>> successful >>>> binding to a port. I'm not sure if there's an argument for putting >>>> this >>>> out at LOG level (i.e. by default) --- any thoughts about that? > >>> +1 for making it LOG instead of DEBUG1 > >> I would tend to vote against that, because startup is getting >> gradually chattier and chattier, and I think this isn't likely to be >> of interest to very many people most of the time. > > Yeah, my thought was that if we've gotten along without this for 20 years, > it's probably not of interest to most people most of the time. > > However, if we're measuring this on a scale of usefulness to the average > DBA, I would argue that it's of more interest than any of these messages > that currently appear by default: My 0.02$: I'd argue that from a security standpoint it is important to log at startup what addresses the service binds to, just so it is visible, explicit and logged. Especially on machines with multiple interfaces to multiple networks it can be confusing, see ipv6 vs ipv4, or bound interfaces with multiple hosts and switches. Granted, there should be firewall rules preventing access, but misconfigurations, or simple changes can happen and go unnoticed. If later the postmaster bind address changes, maybe due to an update or human error, you got the stars aligned just right for an unauthorized access. OTOH, that the "logical replication launcher started" isn't really useful to know to me as a user, I'd rather know when it failed to launch. Best regards, Tels -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers