Re: Permanent settings

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Aidan Van Dyk <aidan(at)highrise(dot)ca>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Permanent settings
Date: 2008-02-19 15:41:23
Message-ID: 20080219154123.GT3091@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Feb 19, 2008 at 04:38:16PM +0100, Csaba Nagy wrote:
> > Are you suggesting we keep appending? So if I set the same parameter 100
> > times, it would show up on 100 rows?
>
> What about not touching the config file at all, but write to a separate
> file which is completely under the control of postgres and include that
> at the end of the config file ? You just said includes are a new feature
> which could complicate things, so why not use it actually in your
> advantage ;-)
>
> That way disabling the overrides would be as simple as commenting out
> the inclusion of the postgres controlled config file. And it would
> separate the user writable and machine writable configuration...

Yeah, that may actually be a very good way to implement it. I don't like
the idea of continously appending to an existing file, but if we did have a
separate file with a tightly controlled format that would be doable.

The end result wouldn't be "as clean" as some would expect, but it would
certainly be easier code-wise. For example, I'm sure someone would get the
suggestion to go edit postgresql.conf to change a config value, and be
surprised when it didn't show up as a changed setting because it was
overridden from another file..

//Magnus

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2008-02-19 15:53:11 Re: Permanent settings
Previous Message Magnus Hagander 2008-02-19 15:39:29 Re: Permanent settings