Thread: 8.2.10 pg_ctl restart will stop but not start server

8.2.10 pg_ctl restart will stop but not start server

From
Arthur Knight Hammer
Date:
Compiled 8.2.10 on fully updated SuSE 10.3 with:

./configure --enable-thread-safety

Every thing behaves normally except pg_ctl:

$ postgres@linux:~/ pg_ctl start
server starting
$ postgres@linux:~/ pg_ctl stop
waiting for server to shut down....LOG:  logger shutting down
 done
server stopped

Perfect behavior.  Then:

$ postgres@linux:~/ pg_ctl restart
waiting for server to shut down....LOG:  logger shutting down
 done
server stopped
sh: -c: line 0: syntax error near unexpected token `null'
sh: -c: line 0: `"/usr/local/pgsql/bin/postgres" (null) < "/dev/null" 2>&1
&'
pg_ctl: could not start server: exit code was 512

Not a show stopper but a bit naughty.  Please let me know if I can be of
further assistance.

I am not subscribed to this list - email directly.

Arthur Knight Hammer

Re: 8.2.10 pg_ctl restart will stop but not start server

From
Tom Lane
Date:
Arthur Knight Hammer <arthur@kingofthebears.com> writes:
> $ postgres@linux:~/ pg_ctl restart
> waiting for server to shut down....LOG:  logger shutting down
>  done
> server stopped
> sh: -c: line 0: syntax error near unexpected token `null'
> sh: -c: line 0: `"/usr/local/pgsql/bin/postgres" (null) < "/dev/null" 2>&1
> &'
> pg_ctl: could not start server: exit code was 512

Yeah, this is already reported and patched, but unfortunately not till
after 8.2.10 et al went out :-(
http://archives.postgresql.org/pgsql-committers/2008-09/msg00287.php

            regards, tom lane