psql 9.* pg_restore --clean exits 1 when table does not exist
psql 9.* pg_restore --clean exits 1 when table does not exist
От:
PG Doc comments form <noreply@postgresql.org>
Дата:
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/9.6/static/app-pgrestore.html Description: Using pg_restore with the --clean flag without the --if-exists flag and objects are not present in the destination database results in exit status 1. The documentation states that --if-exists suppresses "some harmless error messages" but it also changes the exit status to 0. A non-zero exit status does not seem to be harmless.