Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
Date: 2008-06-27 16:58:41
Message-ID: 48651C41.4000701@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Richard Huxton wrote:
> Richard Huxton wrote:
>> At present it means you can't reliably do:
>> DROP DATABASE foo;
>> pg_restore --create foo.dump
>> I'd then have to either hand edit the dumpall dump or wade through a
>> bunch of errors checking that none of them were relevant.
>
> Actually, I'm not sure pg_dumpall does them either.
[snip]
> Am I doing something stupid here?

OK - so to get the ALTER DATABASE commands I need to dump the schema for
the entire cluster. Is that really desired behaviour?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-06-27 17:14:15 Re: Vacuuming leaked temp tables (once again)
Previous Message Alvaro Herrera 2008-06-27 16:52:10 Re: Vacuuming leaked temp tables (once again)