Re: postgres --help-config

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Fernando Nasser <fnasser(at)redhat(dot)com>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: postgres --help-config
Date: 2003-10-15 19:35:43
Message-ID: 200310151935.h9FJZha08310@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > One thing that seems very strange about the current API are flags that
> > have meaning only when --help-config becomes before it, as with -G and
> > -M. I have never seen that before,
>
> postgres -boot does exactly that, and the new code was modeled on it.
> Which doesn't make it good design, maybe, but you can hardly claim
> that there's no precedent.

However, -boot isn't documented because it is only for internal use.
If it was for general use, I doubt it would still use that API.

> We had also considered choosing a different executable name (the
> postmaster-vs-postgres trick). But on platforms without symlinks,
> like Windows, that would mean an extra whole copy of the backend
> in the installed system, which seemed a bit much just to avoid some
> ugliness in the switch set...

Agreed.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-10-15 19:36:43 Re: postgres --help-config
Previous Message Andrew Dunstan 2003-10-15 18:32:01 Re: Can't CREATE INDEX on a schema?