public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Thom Brown <[email protected]>
Cc: Bruce Momjian <[email protected]>
Cc: pgsql-docs <[email protected]>
Subject: Re: PGDATA confusion
Date: Sun, 14 Apr 2013 10:50:46 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAA-aLv6Ut2r=m79OPykMuP4-=9BEfOadSAvwaphQgubivOkymQ@mail.gmail.com>
References: <CAA-aLv6KYbPa3FgH6_shVXrxQto86+QDJHQgj1isbeQngiBBGw@mail.gmail.com>
<[email protected]>
<[email protected]>
<CAA-aLv7t0vUH1NZK9k94eJfn-RnA-P844aWoxkRSQL4H=ExYaw@mail.gmail.com>
<CAA-aLv6Ut2r=m79OPykMuP4-=9BEfOadSAvwaphQgubivOkymQ@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>
Thom Brown <[email protected]> writes:
> I've found another unfortunate inconsistency.
> PGDATA is not necessarily the same location in these 2 commands:
> pg_ctl start -D DATADIR
> pg_ctl stop -D DATADIR
> The first one requires that the postgresql.conf file be located in the
> specified directory. The second one needs to find the pid file. On
> Debian/Ubuntu/Linux Mint/Gentoo (and probably most other Linux
> distros), it would mean 2 different locations for each:
> pg_ctl start -D /etc/postgresql/9.2/main/
> pg_ctl stop -D /var/lib/postgresql/9.2/main/
This is one of the reasons why an external config file isn't as great
an idea as some people think.
I wonder whether we shouldn't simply remove the ability for
postgresql.conf to exist outside the data directory (which would be
mechanized by removing the ability to set data_directory to something
other than the place where the config file is found). People who prefer
to keep their config somewhere else can reduce the in-the-directory file
to just "include /some/other/file". But otherwise, this would get rid
of a confusing and completely unnecessary inconsistency between
different installations.
regards, tom lane
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
view thread (7+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: PGDATA confusion
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox