Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud4tA-00083c-Fb for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2013 20:35:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ud4tA-0006wV-1E for pgsql-bugs@arkaria.postgresql.org; Thu, 16 May 2013 20:35:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud4t9-0006wQ-Fp for pgsql-bugs@postgresql.org; Thu, 16 May 2013 20:34:59 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ud4t1-0002py-KV for pgsql-bugs@postgresql.org; Thu, 16 May 2013 20:34:58 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.80) (envelope-from ) id 1Ud4sz-00036z-Vs for pgsql-bugs@postgresql.org; Thu, 16 May 2013 22:34:50 +0200 Date: Thu, 16 May 2013 22:34:49 +0200 From: hubert depesz lubaczewski To: pgsql-bugs@postgresql.org Subject: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Message-ID: <20130516203449.GA6559@depesz.com> Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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