Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUEQM-0006st-1P for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 16:19:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUEQL-0008JU-Fz for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 16:19: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 1eUEQL-0008JJ-A9 for pgsql-bugs@lists.postgresql.org; Wed, 27 Dec 2017 16:19:21 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eUEQH-0007RB-K9 for pgsql-bugs@postgresql.org; Wed, 27 Dec 2017 16:19:20 +0000 Received: by fetter.org (Postfix, from userid 1001) id 48F534196F; Wed, 27 Dec 2017 17:19:17 +0100 (CET) Date: Wed, 27 Dec 2017 17:19:17 +0100 From: David Fetter To: "David G. Johnston" Cc: Amit Kapila , "Robertson, Alan L" , Tom Lane , Postgres Bug Subject: Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command. Message-ID: <20171227161916.GD32234@fetter.org> References: <1513959489455.36489@charter.com> <17247.1513963209@sss.pgh.pa.us> <1513964805505.77792@charter.com> <20171227160545.GC32234@fetter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Dec 27, 2017 at 09:13:38AM -0700, David G. Johnston wrote: > On Wed, Dec 27, 2017 at 9:05 AM, David Fetter wrote: > > > > > The following hack works for me. Apart from being ugly, it's > > fundamentally unsatisfactory because the question of whether the > > setting has been activated is left unsettled > > > > Starting with 9.5 we've at least made the parsing of the configuration file > unnecessary: > > https://www.postgresql.org/docs/10/static/view-pg-file-settings.html Great! That awful query turns into: SELECT setting FROM pg_file_settings WHERE "name" = 'tcp_keepalives_idle' AND applied; ...which is a real improvement. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate