diff options
author | Bruce Momjian <bruce@momjian.us> | 2014-03-08 12:15:25 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2014-03-08 12:15:25 -0500 |
commit | 11d205e2bd66cefe0b7d69c02e831cd055cbb5bb (patch) | |
tree | 2c28821e804670cdd88f4bfc768abc9cd35d7184 /doc/src | |
parent | 3624acd342d7b5ad6bb07730b8bac5ed5874fc23 (diff) | |
download | postgresql-11d205e2bd66cefe0b7d69c02e831cd055cbb5bb.tar.gz postgresql-11d205e2bd66cefe0b7d69c02e831cd055cbb5bb.zip |
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_ctl-ref.sgml | 3 |
1 files changed, 2 insertions, 1 deletions
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 <acronym>PID</acronym> 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. </para> <para> |