Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases - Mailing list pgsql-bugs

From Josh Kupershmidt
Subject Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
Date
Msg-id CAK3UJREwx9y1Lz87R4s1F3QPbP6n3F9SEAvetUOcnDdwx3CmtA@mail.gmail.com
Whole thread Raw
In response to pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-bugs
On Thu, May 16, 2013 at 4:34 PM, hubert depesz lubaczewski
<depesz@depesz.com> wrote:

> =$ pg_ctl -D $( pwd ) -m fast restart
> waiting for server to shut down.... done
> server stopped
> server starting
> postgres cannot access the server configuration file "/home/test/test/slave/test/slave/postgresql.conf": No such file
ordirectory 
>
> The problem doesn't exist when I'd start pg with:
> 1. cd test/slave; pg_ctl -D . start
> or
> 2. pg_ctl -D /home/test/test/slave start
>
> only when Pg is started with relative path, and restarted with absolute, the
> problem shows.
>
> I know that it's probably not a big deal for most of the people, but it
> did bite me, so I'm reporting it.

It has been a nuisance for me too. Possible patch for pg_ctl is in the next CF:
  http://www.postgresql.org/message-id/CAK3UJRFK8-izAU1SMpNZr5Muc+6CRWBk0_7ByJnwUoapj3esFQ@mail.gmail.com

Josh

pgsql-bugs by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases