pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
5+ messages / 4 participants
[nested] [flat]
* pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
@ 2013-05-16 20:34 hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 21:37 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Josh Kupershmidt <schmiddy@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: hubert depesz lubaczewski @ 2013-05-16 20:34 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
2013-05-16 20:34 pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
@ 2013-05-16 21:37 ` Josh Kupershmidt <schmiddy@gmail.com>
2013-05-16 21:55 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 5+ messages in thread
From: Josh Kupershmidt @ 2013-05-16 21:37 UTC (permalink / raw)
To: depesz@depesz.com; +Cc: 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 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....
Josh
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
2013-05-16 20:34 pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 21:37 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Josh Kupershmidt <schmiddy@gmail.com>
@ 2013-05-16 21:55 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-05-16 21:58 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 22:00 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 5+ messages in thread
From: Alvaro Herrera @ 2013-05-16 21:55 UTC (permalink / raw)
To: Josh Kupershmidt <schmiddy@gmail.com>; +Cc: depesz@depesz.com; pgsql-bugs
Josh Kupershmidt escribió:
> On Thu, May 16, 2013 at 4:34 PM, hubert depesz lubaczewski
> <depesz@depesz.com> wrote:
> > only when Pg is started with relative path, and restarted with absolute, the
> > problem shows.
> 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....
Um, if this is a bug introduced during the 9.3 timeframe surely we
ought to fix it now instead of waiting for the CF.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
2013-05-16 20:34 pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 21:37 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Josh Kupershmidt <schmiddy@gmail.com>
2013-05-16 21:55 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-05-16 21:58 ` hubert depesz lubaczewski <depesz@depesz.com>
1 sibling, 0 replies; 5+ messages in thread
From: hubert depesz lubaczewski @ 2013-05-16 21:58 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Josh Kupershmidt <schmiddy@gmail.com>; pgsql-bugs
On czw, maj 16, 2013 at 05:55:54 -0400, Alvaro Herrera wrote:
> > > only when Pg is started with relative path, and restarted with absolute, the
> > > problem shows.
> > 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....
> Um, if this is a bug introduced during the 9.3 timeframe surely we
> ought to fix it now instead of waiting for the CF.
Apparently not. Retried with 9.1.9, and got exactly same result:
=$ pg_ctl -D q -l logfile start
server starting
=$ cd q
=$ 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/depesz/q/q/postgresql.conf": No such file or directory
Best regards,
depesz
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases
2013-05-16 20:34 pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 21:37 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Josh Kupershmidt <schmiddy@gmail.com>
2013-05-16 21:55 ` Re: pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-05-16 22:00 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 2013-05-16 22:00 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Josh Kupershmidt <schmiddy@gmail.com>; depesz@depesz.com; pgsql-bugs
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Um, if this is a bug introduced during the 9.3 timeframe surely we
> ought to fix it now instead of waiting for the CF.
I think it's been that way all along. Nonetheless, if you feel
motivated to review the patch now, there's nothing wrong with that.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2013-05-16 22:00 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 20:34 pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 21:37 ` Josh Kupershmidt <schmiddy@gmail.com>
2013-05-16 21:55 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-05-16 21:58 ` hubert depesz lubaczewski <depesz@depesz.com>
2013-05-16 22:00 ` Tom Lane <tgl@sss.pgh.pa.us>
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