Re: pg_dump design problem (bug??)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump design problem (bug??)
Дата
Msg-id 17321.1147207640@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump design problem (bug??)  ("Karl O. Pinc" <kop@meme.com>)
Ответы Re: pg_dump design problem (bug??)  ("Karl O. Pinc" <kop@meme.com>)
Список pgsql-general
"Karl O. Pinc" <kop@meme.com> writes:
> I'm wondering if there's a problem with pg_dump --create,
> or if I'm just missing something.
> It does not seem to restore things like:
> ALTER DATABASE foo SET "DateStyle" TO European;
> Shouldn't the database that is re-created be like
> the database that is being dumped?

The major reason why pg_dump doesn't touch that stuff is that it wants
to be agnostic about the name of the database you are restoring into.

I don't see any particular problem with leaving it to pg_dumpall, in
any case.  pg_dump is already assuming that you've correctly set up
cluster-wide state; for example it doesn't create users for you.

            regards, tom lane

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

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: Encoding Conversion
Следующее
От: "Rodrigo Cortés"
Дата:
Сообщение: install postgres on usb drive???