From 11d205e2bd66cefe0b7d69c02e831cd055cbb5bb Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 8 Mar 2014 12:15:25 -0500 Subject: 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 --- doc/src/sgml/ref/pg_ctl-ref.sgml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/pg_ctl-ref.sgml b/doc/src/sgml/ref/pg_ctl-ref.sgml index 45b53ce1a1a..52bcf5e8153 100644 --- a/doc/src/sgml/ref/pg_ctl-ref.sgml +++ b/doc/src/sgml/ref/pg_ctl-ref.sgml @@ -208,7 +208,8 @@ PostgreSQL documentation the specified data directory. If it is, the PID and the command line options that were used to invoke it are displayed. If the server is not running, the process returns an - exit status of 3. + exit status of 3. If an accessible data directory is not specified, + the process returns an exit status of 4. -- cgit v1.2.3