pgsql: pg_ctl: improve handling of invalid data directory

Started by Bruce Momjianover 12 years ago1 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

pg_ctl: improve handling of invalid data directory

Return '4' and report a meaningful error message when a non-existent or
invalid data directory is passed. Previously, pg_ctl would just report
the server was not running.

Patch by me and Amit Kapila
Report from Peter Eisentraut

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/11d205e2bd66cefe0b7d69c02e831cd055cbb5bb

Modified Files
--------------
doc/src/sgml/ref/pg_ctl-ref.sgml | 3 ++-
src/bin/pg_ctl/pg_ctl.c | 48 +++++++++++++++++++++++++++++---------
2 files changed, 39 insertions(+), 12 deletions(-)

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