Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amir Rohan <amir(dot)rohan(at)zoho(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hacker mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files
Date: 2015-10-09 18:55:22
Message-ID: CA+TgmobLCV6dQQonCk2Kxhta0c1BTKNx-qTsnoRxGsfx=P9+bg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 8, 2015 at 9:06 AM, Amir Rohan <amir(dot)rohan(at)zoho(dot)com> wrote:
> On 10/08/2015 02:38 PM, Tom Lane wrote:
>> Amir Rohan <amir(dot)rohan(at)zoho(dot)com> writes:
>>> Comments?
>>
>> ISTM that all of the "functional" parts of this are superseded by
>> pg_file_settings;
>
> To use the new pg_file_settings view you need:
> 1( 9.5+
> 2( a running server
>
> The feature is describes as follows in a97e0c3354ace5d74
>
>> The information returned includes the configuration file name, line
>> number in that file, sequence number indicating when the parameter is
>> loaded )useful to see if it is later masked by another definition of
>> the same parameter(, parameter name, and what it is set to at that
>> point. This information is updated on reload of the server.
>
> None of which has much overlap in purpose with what I was suggesting, so
> I don't see why you think it actually makes it redundant.

I think Tom's point is that if you want to see whether the file
reloads without errors, you can use this view for that. That would
catch stuff like wal_level=lgocial and
default_transaction_isolation='read_committed'.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-10-09 19:11:39 Re: More work on SortSupport for text - strcoll() and strxfrm() caching
Previous Message Robert Haas 2015-10-09 18:52:57 Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files