X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 48ACDD1B47E for ; Mon, 15 Dec 2003 17:34:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84365-02 for ; Mon, 15 Dec 2003 13:34:21 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id F3590D1B430 for ; Mon, 15 Dec 2003 13:34:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hBFHYK19013637; Mon, 15 Dec 2003 12:34:20 -0500 (EST) To: Rich Cullingford Cc: pgsql-admin@postgresql.org Subject: Re: Moving a database AND changing the superuser 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> Comments: In-reply-to Rich Cullingford message dated "Mon, 15 Dec 2003 12:17:09 -0500" Date: Mon, 15 Dec 2003 12:34:20 -0500 Message-ID: <13636.1071509660@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/202 X-Sequence-Number: 11709 Rich Cullingford 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