pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: James Bellinger <jfb@zer7.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5276: pg_ctl reads data directory on -D instead of postgresql.conf directoryh
Date: Thu, 14 Jan 2010 11:11:03 -0500
Message-ID: <24490.1263485463@sss.pgh.pa.us> (raw)
In-Reply-To: <201001140201.o0E21sr7075150@wwwmaster.postgresql.org>
References: <201001140201.o0E21sr7075150@wwwmaster.postgresql.org>

"James Bellinger" <jfb@zer7.com> writes:
> While on startup, pg_ctl (correctly) looks in the directory specified by -D
> for postgresql.conf, and then uses that to determine the data directory,
> when stopping it actually expects the directories to be the same and in
> doing so looks for the PID file in the given directory. As a result, on
> start one needs to use the .conf directory with -D, and on stop the data
> directory.

Your premise is wrong --- pg_ctl does not read postgresql.conf at any
time.  It's not intended to be used in a scenario where the
data_directory configuration option is being used.

There have been previous discussions about trying to teach it to read
the config file, but the effort needed seems far out of proportion to
the benefits :-(

			regards, tom lane




view thread (10+ messages)  latest in thread

Message-ID: <24490.1263485463@sss.pgh.pa.us>
Permalink:  ../24490.1263485463@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24490.1263485463@sss.pgh.pa.us

 · 

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: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jfb@zer7.com
  Subject: Re: BUG #5276: pg_ctl reads data directory on -D instead of postgresql.conf directoryh
  In-Reply-To: <24490.1263485463@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox