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

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org, Richard Huxton <dev(at)archonet(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: Does anything dump per-database config settings? (was Re: ALTER DATABASE vs pg_dump)
Date: 2008-08-22 14:31:27
Message-ID: 200808221431.m7MEVRJ01724@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > ALTER DATABASE ... SET seems to be something that doesn't fit in
> > anywhere; I am thinking pg_dump -g should dump it.
>
> The upthread conclusion was that pg_dump -C should do it.
> I am not sure how you come to the conclusion that -g is an
> appropriate place, seeing that -g will not create the database(s)
> that it'd be trying to apply ALTER to.

Agreed, now that I see pg_dump -C. I have added a TODO item:

Add: Have pg_dump -C emit ALTER DATABASE ... SET commands after
database creation

Does the documentation need to be updated beyond my changes from
yesterday?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Witt 2008-08-22 15:30:04 Re: Difference when using ZIC vs. Timezone Abbr - Bug? - SOLVED
Previous Message Albert Cervera i Areny 2008-08-22 12:34:51 Re: [HACKERS] [FINALLY] the TODO list has migrated to Wiki