psql 9.* pg_restore --clean exits 1 when table does not exist - Mailing list pgsql-docs

From PG Doc comments form
Subject psql 9.* pg_restore --clean exits 1 when table does not exist
Date
Msg-id 152044126994.23137.13155863308187682060@wrigleys.postgresql.org
Whole thread Raw
List pgsql-docs
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.

pgsql-docs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: libpq options
Next
From: PG Doc comments form
Date:
Subject: "IS NOT DOCUMENT" is missing