Re: pg_ctl restart issue with relative paths - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_ctl restart issue with relative paths
Date
Msg-id 27233.1350234453@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_ctl restart issue with relative paths  (Josh Kupershmidt <schmiddy@gmail.com>)
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: pg_ctl restart issue with relative paths
Next
From: Craig Ringer
Date:
Subject: Re: BUG #7595: terminate process in an unusual way