Re: SQL command to edit postgresql.conf, with comments

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: SQL command to edit postgresql.conf, with comments
Дата
Msg-id m262x5rt3r.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: SQL command to edit postgresql.conf, with comments  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Ответы Re: SQL command to edit postgresql.conf, with comments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> Ok, now, some people want to still be able to edit the files by hand

I wonder if providing a system function to load some configuration
option from a file, using the current parser, would do it:
 SELECT pg_load_conf('path/to/filename.conf', permament => true);

Of course comments are ignored. Settings in the directory would be
changed according to what's in your file, so that it'd be roughtly
equivalent as current steps:a. edit the fileb. use pg_load_conf() rather than pg_reload_conf()

Comments?
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: ECPG FETCH readahead
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: [DOCS] Docs for archive_cleanup_command are poor