pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: pgsql-bugs@postgresql.org
Subject: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
Date: Thu, 16 May 2013 22:34:49 +0200
Message-ID: <20130516203449.GA6559@depesz.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

hi,
I have 9.3beta1, and strange problem.

Have running slave pg in directory /home/test/test/slave:

=$ pwd
/home/test/test/slave

=$ cat postmaster.pid 
16961
/home/test/test/slave
1368736261
5433
/tmp
*
  5433001   7241781

=$ ps uxf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
...
test     16961  0.2  0.1 173528 12912 pts/7    S    22:31   0:00 /home/pgdba/work/bin/postgres -D test/slave
test     16970  0.0  0.0  27020   812 ?        Ss   22:31   0:00  \_ postgres: logger process                   
test     16971  4.0  0.0 173640  5724 ?        Ss   22:31   0:00  \_ postgres: startup process   recovering 00000001000000000000001B
test     17008  0.0  0.0 173528   972 ?        Ss   22:31   0:00  \_ postgres: checkpointer process             
test     17009  0.0  0.0 173528  1244 ?        Ss   22:31   0:00  \_ postgres: writer process                   
test     17028  0.0  0.0  29116   888 ?        Ss   22:31   0:00  \_ postgres: stats collector process          
test     17029  2.8  0.0 190652  4232 ?        Ds   22:31   0:00  \_ postgres: wal receiver process   streaming 0/1B7917E0
...

All looks fine. But when I'll try to restart it:

=$ 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.

Best regards,

depesz

-- 
The best thing about modern society is how easy it is to avoid contact with it.
                                                             http://depesz.com/


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <20130516203449.GA6559@depesz.com>
Permalink:  ../20130516203449.GA6559@depesz.com/
Also on:    postgresql.org/message-id/20130516203449.GA6559@depesz.com

 · 

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 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: depesz@depesz.com
  Subject: Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
  In-Reply-To: <20130516203449.GA6559@depesz.com>
  References: <20130516203449.GA6559@depesz.com>

* 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