pgsql: pg_resetwal: Improve error with wrong/missing data directory
Started by Peter Eisentrautalmost 3 years ago1 messagescomitters
pg_resetwal: Improve error with wrong/missing data directory
Run chdir() before permission check to get a less confusing error
message if the specified data directory does not exist.
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: /messages/by-id/0f3ab4a1-ae80-56e8-3426-6b4a02507687@eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1d863c250461410e60c9ed5d3180f32336f4c3e2
Modified Files
--------------
src/bin/pg_resetwal/pg_resetwal.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)