Re: Vacuous errors in pg_dump ... | pg_restore pipeline

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuous errors in pg_dump ... | pg_restore pipeline
Дата
Msg-id 15475.1203538463@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Vacuous errors in pg_dump ... | pg_restore pipeline  ("Kynn Jones" <kynnjo@gmail.com>)
Список pgsql-general
"Kynn Jones" <kynnjo@gmail.com> writes:
> As far as the shell is concerned, this pipeline fails, due to three errors
> emitted by pg_restore.  All these errors are vacuous, as far as I can tell.

They're hardly vacuous --- they're telling you that the destination
database will be missing plpgsql, which was in the source database.

The only really good way around that pre-8.3 is to run the restore as
a database superuser.  As of 8.3 it should be sufficient to be the
database's owner.

If you don't have any actual use for plpgsql in this database, maybe
you should remove it from the source DB?

> BTW, while on this subject: is there a way to modify the pipeline above to
> minimize the number of warnings and notices generated during pg_restore?

... | PGOPTIONS="--client_min_messages=warning" pg_restore ...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: brian
Дата:
Сообщение: Re: Suggestions for schema design?
Следующее
От: SunWuKung
Дата:
Сообщение: Re: Vacuous errors in pg_dump ... | pg_restore pipeline