Re: Moving a database AND changing the superuser - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: Moving a database AND changing the superuser
Date
Msg-id 200312161410.12334.peter_e@gmx.net
Whole thread Raw
In response to Re: Moving a database AND changing the superuser  (Rich Cullingford <rculling@sysd.com>)
List pgsql-admin
Rich Cullingford wrote:
> 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!).

It supplies that option automatically.

> If I use
> pg_dumpall, will pg_restore (with --use-set-session-authorization) be
> smart enough to ignore the \connect calls in the dump?

pg_dumpall output cannot be restored with pg_restore.

> I would try all this stuff myself, but unfortunately my PG 7.4
> machine isn't available yet, so I'm grasping at straws...

In PG 7.4, --use-set-session-authorization is the default and only
option.


pgsql-admin by date:

Previous
From: Adam Witney
Date:
Subject: Postgresql on software RAID
Next
From: Michael Fuhr
Date:
Subject: Re: postgres Rules