From: Robertson, Alan L <Alan.Robertson@charter.com>
To: David Fetter <david@fetter.org>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres Bug <pgsql-bugs@postgresql.org>
Subject: Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command.
Date: Wed, 27 Dec 2017 17:51:13 +0000
Message-ID: <1514397073411.60063@charter.com> (raw)
In-Reply-To: <20171227161916.GD32234@fetter.org>
References: <1513959489455.36489@charter.com>
<17247.1513963209@sss.pgh.pa.us>
<1513964805505.77792@charter.com>
<CAA4eK1+s8+-8Y9y_xKTVE4hrBn=b5QZAb_fOvsR+9H6_HjkXjw@mail.gmail.com>
<20171227160545.GC32234@fetter.org>
<CAKFQuwbLsw78xvz3pyY5hRuAAd=Ac+Dtyw0BZ222gMiU6kjKhg@mail.gmail.com>
<20171227161916.GD32234@fetter.org>
So, if I understand correctly, this query would yield one row if it was syntactically 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 <david@fetter.org>
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 <david@fetter.org> 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 <david(at)fetter(dot)org> 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 privileged 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 the 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, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: Alan.Robertson@charter.com, david@fetter.org, david.g.johnston@gmail.com, amit.kapila16@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: ALTER SYSTEM for tcp_keepalives_idle doesn't show up with the SHOW command.
In-Reply-To: <1514397073411.60063@charter.com>
References: <1513959489455.36489@charter.com> <17247.1513963209@sss.pgh.pa.us> <1513964805505.77792@charter.com> <CAA4eK1+s8+-8Y9y_xKTVE4hrBn=b5QZAb_fOvsR+9H6_HjkXjw@mail.gmail.com> <20171227160545.GC32234@fetter.org> <CAKFQuwbLsw78xvz3pyY5hRuAAd=Ac+Dtyw0BZ222gMiU6kjKhg@mail.gmail.com> <20171227161916.GD32234@fetter.org> <1514397073411.60063@charter.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox