Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUGER-0006Do-Ab for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 18:15:11 +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 1eUGEQ-0007CY-9g for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Dec 2017 18:15:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eUGEP-0007BE-Pv for pgsql-bugs@lists.postgresql.org; Wed, 27 Dec 2017 18:15:09 +0000 Received: from mail.chartercom.com ([24.176.92.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eUGEM-00089I-RS for pgsql-bugs@postgresql.org; Wed, 27 Dec 2017 18:15:08 +0000 X-IronPort-AV: E=Sophos;i="5.45,466,1508821200"; d="scan'208";a="244404569" Received: from unknown (HELO SC58MEXGP021.CORP.CHARTERCOM.com) ([172.24.253.149]) by mail.chartercom.com with ESMTP; 27 Dec 2017 12:15:03 -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 12:15:03 -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 12:15:03 -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/ZFgAAG4AI= Date: Wed, 27 Dec 2017 18:15:03 +0000 Message-ID: <1514398503085.24755@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>,<1514397073411.60063@charter.com> In-Reply-To: <1514397073411.60063@charter.com> 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 And, in a perfect world, the "passing" config items would be included in da= tabase backups - in a form that would allow them to automatically be restor= ed along with the database... :-D To me, this makes sense, since your database backups are in the form of SQL= that will restore the database to its original/current state. Thoughts? -- Alan ________________________________________ From: Robertson, Alan L Sent: Wednesday, December 27, 2017 10:51 AM 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. 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.