Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
От
Bruce Momjian
Тема
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump)
Дата
Msg-id
200808220228.m7M2SEE06273@momjian.us
Ответ на
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) (Robert Treat)
Список
Дерево обсуждения
ALTER DATABASE vs pg_dump Richard Huxton <dev@archonet.com>
Re: ALTER DATABASE vs pg_dump Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER DATABASE vs pg_dump Richard Huxton <dev@archonet.com>
Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Richard Huxton <dev@archonet.com>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Richard Huxton <dev@archonet.com>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Robert Treat <xzilla@users.sourceforge.net>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Alvaro Herrera <alvherre@commandprompt.com>
Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump) Tom Lane <tgl@sss.pgh.pa.us>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Richard Huxton <dev@archonet.com>
Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump) Tom Lane <tgl@sss.pgh.pa.us>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Richard Huxton <dev@archonet.com>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Robert Treat <xzilla@users.sourceforge.net>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Richard Huxton <dev@archonet.com>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Bruce Momjian <bruce@momjian.us>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Robert Treat <xzilla@users.sourceforge.net>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Bruce Momjian <bruce@momjian.us>
Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump) Tom Lane <tgl@sss.pgh.pa.us>
Re: Does anything dump per-database config settings? (was Re:
ALTER DATABASE vs pg_dump) Bruce Momjian <bruce@momjian.us>
Robert Treat wrote:
> On Thursday 21 August 2008 18:28:55 Bruce Momjian wrote:
> > We never came up with any idea of how pg_dump could dump ALTER DATABASE
> > ... SET commands, so I have added a mention in the documentation, and
> > backpatched to 8.3.X; attached.
> >
>
> ok, I have no recollection of this conversation :-)
>
> but...
>
> > ! The dump file also does not
> > ! contain any ALTER DATABASE ... SET</> commands;
> > ! these settings are dumped by ,
> > ! along with database users and other installation-wide settings.
> >
> >
>
> Is misleading (or maybe just wrong) because those settings are not dumped with
> the other installation wide settings. Meaning that pg_dumpall -g has no
> bearing on the alter database commands being set, you actually have to
> dumpall the entire data set to get those lines.
Oh, that is odd, but documented:
-g
--globals-only Dump only global objects (roles and tablespaces), no databases.
ALTER DATABASE ... SET seems to be something that doesn't fit in
anywhere; I am thinking pg_dump -g should dump it.
-- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: