From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Kupershmidt <schmiddy@gmail.com>
Cc: Thom Brown <thom@linux.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: pg_ctl restart issue with relative paths
Date: Sun, 14 Oct 2012 13:07:33 -0400
Message-ID: <27233.1350234453@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK3UJRERVnNhcgof1s=ukOem00F5wnpZVzTxLbgWWJet3yTM2g@mail.gmail.com>
References: <CAA-aLv72O+NegjAipHORmbqSMZTkZayaTxrd+C9v60YbmMmZUQ@mail.gmail.com>
<CAK3UJRERVnNhcgof1s=ukOem00F5wnpZVzTxLbgWWJet3yTM2g@mail.gmail.com>
Josh Kupershmidt <schmiddy@gmail.com> writes:
> On Sat, Oct 13, 2012 at 3:56 PM, Thom Brown <thom@linux.com> wrote:
>> I have noticed that, using pg_ctl, if you start Postgres using a
>> relative path, then attempt to restart it from anywhere else, it
>> fails.
> Yeah, I was complaining about the same problem here:
> http://archives.postgresql.org/pgsql-bugs/2011-10/msg00210.php
I just re-read that thread, and it occurred to me that there is another
way to fix the problem: what we need is either for postmaster.opts to
not store the -D option at all, or for pg_ctl restart to override that
option with its freshly-derived idea of where the data directory is.
This would avoid my allergy to the idea of storing an absolute-ified
path, which I'm still down on because it would have failure modes of
its own.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, schmiddy@gmail.com, thom@linux.com
Subject: Re: pg_ctl restart issue with relative paths
In-Reply-To: <27233.1350234453@sss.pgh.pa.us>
References: <CAA-aLv72O+NegjAipHORmbqSMZTkZayaTxrd+C9v60YbmMmZUQ@mail.gmail.com> <CAK3UJRERVnNhcgof1s=ukOem00F5wnpZVzTxLbgWWJet3yTM2g@mail.gmail.com> <27233.1350234453@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