Re: location of the configuration files

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kevin Brown <kevin(at)sysexperts(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: location of the configuration files
Date: 2003-02-14 14:40:27
Message-ID: 200302141440.h1EEeRX07343@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Brown wrote:
> Bruce Momjian wrote:
> > OK, here is an updated proposal. I think we have decided:
> >
> > Moving postmaster.pid and postmaster.opts isn't worth it.
> >
> > We don't want per-file GUC variables, but assume it is in
> > the same config directory as postgresql.conf. I don't
> > see any valid reason they would want to put them somewhere
> > different than postgresql.conf.
> >
> > So, we add data_dir to postgresql.conf, and add -C/PGCONFIG to
> > postmaster.
>
> Agreed. One additional thing: when pg_ctl invokes the postmaster, it
> should explicitly specify -C on the postmaster command line, and if it
> doesn't find a data_dir in $PGCONFIG/postgresql.conf then it should
> explicitly specify a -D as well. Pg_ctl is going to have to be
> modified to take a -C argument anyway, so we may as well go all the
> way to do the right thing here.
>
> This way, people who start the database using the standard tools we
> supply will know exactly what's going on when they get a "ps" listing.

No. If you want ps to display, don't use environment variables. Many
don't care --- especially those with only one postmaster.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-02-14 14:41:34 Re: [GENERAL] createlang and Schemas
Previous Message Kevin Brown 2003-02-14 14:40:11 Re: location of the configuration files