psql 9.* pg_restore --clean exits 1 when table does not exist

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема psql 9.* pg_restore --clean exits 1 when table does not exist
Дата
Msg-id 152044126994.23137.13155863308187682060@wrigleys.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: libpq options
Следующее
От: PG Doc comments form
Дата:
Сообщение: "IS NOT DOCUMENT" is missing