From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rich Cullingford <rculling@sysd.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Moving a database AND changing the superuser
Date: Mon, 15 Dec 2003 12:34:20 -0500
Message-ID: <13636.1071509660@sss.pgh.pa.us> (raw)
In-Reply-To: <3FDDEC95.9080506@sysd.com>
References: <3FDDD39D.1060101@sysd.com>
<13040.1071505135@sss.pgh.pa.us>
<3FDDE816.3090804@sysd.com>
<13436.1071507941@sss.pgh.pa.us>
<3FDDEC95.9080506@sysd.com>
Rich Cullingford <rculling@sysd.com> writes:
> Well, I was gonna use pg_dumpall to avoid the tedium of individual
> dumps, but (gotcha!) pg_dumpall doesn't accept
> --use-set-session-authorization (tho' it does run pg_dump!). If I use
> pg_dumpall, will pg_restore (with --use-set-session-authorization) be
> smart enough to ignore the \connect calls in the dump?
Nope, because pg_dumpall only outputs plain-text scripts, which you
can't feed to pg_restore. 7.3's pg_dumpall was a few bricks shy of a
load as far as supporting all the possibly-useful options of pg_dump :-(
so I think you're kinda stuck here. You can either hack up the
pg_dumpall sources to add this option, or go to 7.4.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, rculling@sysd.com
Subject: Re: Moving a database AND changing the superuser
In-Reply-To: <13636.1071509660@sss.pgh.pa.us>
References: <3FDDD39D.1060101@sysd.com> <13040.1071505135@sss.pgh.pa.us> <3FDDE816.3090804@sysd.com> <13436.1071507941@sss.pgh.pa.us> <3FDDEC95.9080506@sysd.com> <13636.1071509660@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox