Re: TODO item: Allow more complex user/database default GUC settings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TODO item: Allow more complex user/database default GUC settings
Дата
Msg-id 24553.1254327235@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: TODO item: Allow more complex user/database default GUC settings  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane escribi�:
>> Hmm ... I would kind of think that --roles-only should suppress this too.
>> Otherwise you're going to be dumping commands that might refer to
>> nonexistent databases.

> Hmm.  The problem I have with this idea is that the only way to dump the
> per-database role settings is if you are also dumping the contents of
> all databases.  Which seems like a pain to me because the usage I
> usually recommend is to backup global objects with pg_dumpall -g.

Huh?  --globals-only would still dump them, no?

> I wonder if pg_dumpall should have a method for dumping database
> creation and settings, excluding contents (leaving that for plain
> pg_dump).

Perhaps.  People keep speculating about refactoring the division of
labor between pg_dump and pg_dumpall.  I'd advise leaving that for
a separate patch though ...
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output