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

From Richard Huxton
Subject Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
Date
Msg-id 48651C41.4000701@archonet.com
Whole thread Raw
In response to Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)  (Richard Huxton <dev@archonet.com>)
Responses Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
List 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


pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
Next
From: Alvaro Herrera
Date:
Subject: Re: Vacuuming leaked temp tables (once again)