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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files
Дата
Msg-id 20151014174553.GD4405@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files  (Amir Rohan <amir.rohan@zoho.com>)
Ответы Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files  (Andres Freund <andres@anarazel.de>)
Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files  (Amir Rohan <amir.rohan@zoho.com>)
Список pgsql-hackers
Amir Rohan wrote:

> it does fail the "dependent options" test:
> $ postgres -C "archive_mode"
> on
> $ postgres -C wal_level
> minimal
> 
> no errors, great, let's try it:
> $ pg_ctl restart
> 
> FATAL:  WAL archival cannot be enabled when wal_level is "minimal"

This complaint could be fixed we had a --check-config that runs the
check hook for every variable, I think.  I think that closes all the
syntax checks you want; then your tool only needs to worry about
semantic checks, and can obtain the values by repeated application of -C
<param> (or, more conveniently, have a new -C mode that takes no args
and prints the names and values for all parameters).

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Can extension build own SGML document?
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files