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:
@ -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>
|
||||
|
Reference in New Issue
Block a user