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

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: depesz(at)depesz(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
Date: 2013-05-16 21:37:14
Message-ID: CAK3UJREwx9y1Lz87R4s1F3QPbP6n3F9SEAvetUOcnDdwx3CmtA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, May 16, 2013 at 4:34 PM, hubert depesz lubaczewski
<depesz(at)depesz(dot)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 or directory
>
> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2013-05-16 21:55:54 Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
Previous Message Nelson Minar 2013-05-16 20:45:49 Re: BUG #8167: false EINVAL -22 for opening a file