Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUFrT-0004bp-RQ for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 17:51:27 +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 1eUFrT-0002wC-5s for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 17:51:27 +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 1eUFrT-0002w2-0C for pgsql-bugs@lists.postgresql.org; Wed, 27 Dec 2017 17:51:27 +0000 Received: from mail.chartercom.com ([24.176.92.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eUFrK-0001Px-Dk for pgsql-bugs@postgresql.org; Wed, 27 Dec 2017 17:51:26 +0000 X-IronPort-AV: E=Sophos;i="5.45,466,1508821200"; d="scan'208";a="87690904" Received: from unknown (HELO SC58MEXGP021.CORP.CHARTERCOM.com) ([172.24.253.149]) by mail.chartercom.com with ESMTP; 27 Dec 2017 11:51:14 -0600 Received: from SC58MEXGP020.CORP.CHARTERCOM.COM (172.24.253.148) by SC58MEXGP021.CORP.CHARTERCOM.com (172.24.253.149) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Wed, 27 Dec 2017 11:51:13 -0600 Received: from SC58MEXGP020.CORP.CHARTERCOM.COM ([fe80::29d5:ec22:71e0:707]) by SC58MEXGP020.CORP.CHARTERCOM.com ([fe80::29d5:ec22:71e0:707%18]) with mapi id 15.00.1104.000; Wed, 27 Dec 2017 11:51:13 -0600 From: "Robertson, Alan L" To: David Fetter , "David G. Johnston" CC: Amit Kapila , Tom Lane , Postgres Bug Subject: Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command. Thread-Topic: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command. Thread-Index: AQHTez6kljvbnl/ZIEqPT7JFZRhQcqNQAFOA//+ic/KAARGRgIAHEtuAgAACNACAAAGUgP//s/ZF Date: Wed, 27 Dec 2017 17:51:13 +0000 Message-ID: <1514397073411.60063@charter.com> References: <1513959489455.36489@charter.com> <17247.1513963209@sss.pgh.pa.us> <1513964805505.77792@charter.com> <20171227160545.GC32234@fetter.org> ,<20171227161916.GD32234@fetter.org> In-Reply-To: <20171227161916.GD32234@fetter.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.24.253.192] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk So, if I understand correctly, this query would yield one row if it was syn= tactically correct, and no rows if it had a syntax error. And there's nothing which indicates if it is currently activated or not. Do I understand that correctly? Thanks! ________________________________________ From: David Fetter Sent: Wednesday, December 27, 2017 9:19 AM 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. 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 fi= le > 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" =3D '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 E-MAIL CONFIDENTIALITY NOTICE: = The contents of this e-mail message and any attachments are intended solely= for the addressee(s) and may contain confidential and/or legally privilege= d information. If you are not the intended recipient of this message or if = this message has been addressed to you in error, please immediately alert t= he sender by reply e-mail and then delete this message and any attachments.= If you are not the intended recipient, you are notified that any use, diss= emination, distribution, copying, or storage of this message or any attachm= ent is strictly prohibited.