Re: Full backup - pg_dumpall sufficient?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Full backup - pg_dumpall sufficient?
Дата
Msg-id 22796.1233283177@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Full backup - pg_dumpall sufficient?  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-general
Jeff Frost <jeff@frostconsultingllc.com> writes:
>> I guess I could pg_dumpall -s | grep "ALTER DATABASE" to grab that stuff.

> That seems silly.  Is this the best way to find this data:

> SELECT name, setting FROM pg_settings where source = 'database' ORDER BY
> name;

No, you'd miss anything overridden locally in your session.

I'd think about getting it out of pg_database.datconfig, instead.
Or really the easiest way is to tweak the logic in pg_dumpall about
what to dump when ...

            regards, tom lane

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

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: Full backup - pg_dumpall sufficient?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Pet Peeves?