1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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
This commit is contained in:
Bruce Momjian
2014-03-08 12:15:25 -05:00
parent 3624acd342
commit 11d205e2bd
2 changed files with 39 additions and 12 deletions

View File

@ -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>