pg_ctl: Add idempotent option
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 14 Apr 2013 03:42:42 +0000 (23:42 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 14 Apr 2013 03:42:42 +0000 (23:42 -0400)
commit87306184580c9c49717b00d48a2f9e717f21e0a8
treed39be0371ff7830870b353bda08a881b3cfe2802
parentba66752d278818b6b8797aec2e36cccf727db055
pg_ctl: Add idempotent option

This changes the behavior of the start and stop actions to exit
successfully if the server was already started or stopped.

This changes the default behavior of the start action:  Before, if the
server was already running, it would print a message and succeed.  Now,
that situation will result in an error.  When running in idempotent
mode, no message is printed and pg_ctl exits successfully.

It was considered to just make the idempotent behavior the default and
only option, but pg_upgrade needs the old behavior.
contrib/start-scripts/linux
doc/src/sgml/ref/pg_ctl-ref.sgml
src/bin/pg_ctl/pg_ctl.c