Re: Overhauling GUCS

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: Greg Smith <gsmith(at)gregsmith(dot)com>, Aidan Van Dyk <aidan(at)highrise(dot)ca>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Overhauling GUCS
Date: 2008-06-06 16:25:06
Message-ID: 866D369E-782F-4EBD-B4B4-250FF6068D0D@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jun 6, 2008, at 01:50, Andreas Pflug wrote:

> Two heretical questions:
> Do we need user generated comments at all?
> I can't remember ever having used any comment in postgresql.conf.

That's a valid point. I've used comments to note by whom and when when
a setting was changed.

> Why do so many people here insist on editing postgresql.conf as
> primary means of changing config params?
> Isn't a psql -c "SET foo=bar; MAKE PERSISTENT" just as good as
> sed'ing postgresql.conf or doing it manually?

I think that there has been enough pushback against housing all the
settings in the database, not to mention that it calls for an API,
that just starting with something simpler to parse the file and
rewrite it from the command-line might be a better first step.

> Looking around for different approaches, network appliances come to
> my mind, e.g. Cisco routers and PIX. You have 3 ways to configure a
> pix:
> - use a command line (using ssh or telnet, eqivalent to psql); WRITE
> MEMORY to make the changes survive a reboot.
> - use a web interface (or similar tool)
> - use tftp to up/download the complete config in and out, editing
> the file. User comments will be lost, with the exception of those
> that have been applied with special comment commands (equivalent to
> "comment on").

I think the first option there is the one that's been getting the most
support here.

Best,

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-06-06 16:39:58 Re: Proposal: New LWLockmode LW_OWNER
Previous Message David E. Wheeler 2008-06-06 16:22:39 Re: Overhauling GUCS