Re: SQL command to edit postgresql.conf, with comments - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: SQL command to edit postgresql.conf, with comments
Date
Msg-id m262x5rt3r.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: SQL command to edit postgresql.conf, with comments  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: SQL command to edit postgresql.conf, with comments
List 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 by date:

Previous
From: Boszormenyi Zoltan
Date:
Subject: Re: ECPG FETCH readahead
Next
From: Brendan Jurd
Date:
Subject: Re: [DOCS] Docs for archive_cleanup_command are poor