Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db
Дата
Msg-id 18195.1466000174@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #14192: pg_dump/pg_restore omit setting search_path in restored db  (buschmann@nidsa.net)
Список pgsql-bugs
buschmann@nidsa.net writes:
> On the origin database I had entered
> ALTER DATABASE xxxdb SET search_path TO public,partition2;
> The restore omits setting the search path, it must be entered again with
> ALTER DATABASE on the target machine.

This is operating as designed: pg_dump dumps the content of a database,
not settings attached to the database object as such.  You can use
pg_dumpall (possibly with the -g switch) to capture that info.

There've been repeated discussions about refactoring this division of
labor, but nothing's been agreed to yet.

            regards, tom lane

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

Предыдущее
От: buschmann@nidsa.net
Дата:
Сообщение: BUG #14192: pg_dump/pg_restore omit setting search_path in restored db
Следующее
От: Joe Conway
Дата:
Сообщение: Re: