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 14090D1B43C for ; Mon, 15 Dec 2003 17:17:41 +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 80393-02 for ; Mon, 15 Dec 2003 13:17:19 -0400 (AST) Received: from martin.sysdetect.com (martin.sysdetect.com [65.209.102.1]) by svr1.postgresql.org (Postfix) with ESMTP id C9859D1B47E for ; Mon, 15 Dec 2003 13:17:12 -0400 (AST) Received: (from mail@localhost) by martin.sysdetect.com (8.11.4/8.11.3) id hBFHHIC06425; Mon, 15 Dec 2003 17:17:18 GMT Received: from winwood.sysdetect.com(172.16.1.1) via SMTP by mail.sysdetect.com, id smtpdA31492; Mon Dec 15 17:17:10 2003 Received: from sysd.com (thriller.sysdetect.com [172.16.1.33]) by winwood.sysdetect.com (8.11.6/8.11.6) with ESMTP id hBFHHAb29824; Mon, 15 Dec 2003 12:17:10 -0500 Message-ID: <3FDDEC95.9080506@sysd.com> Date: Mon, 15 Dec 2003 12:17:09 -0500 From: Rich Cullingford User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Moving a database AND changing the superuser References: <3FDDD39D.1060101@sysd.com> <13040.1071505135@sss.pgh.pa.us> <3FDDE816.3090804@sysd.com> <13436.1071507941@sss.pgh.pa.us> In-Reply-To: <13436.1071507941@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/200 X-Sequence-Number: 11707 Tom Lane wrote: > Rich Cullingford writes: > >>Hmmm, how do you use 7.4 utilities against a 7.3 DB? > > > pg_dump can dump from prior-release DBs (back to 7.0 at the moment). > Just point it at the older DB's port. > > This is a bit tricky when installing from RPMs, since there's no really > easy way to install just pg_dump and libpq without overwriting your old > server executable, which you don't want to do just yet. > > >>I'm assuming that you don't mean: >>--superuser=username >>which seems to be for disabling triggers, but perhaps the following as a >>parameter to pg_dumpall: >>--use-set-session-authorization > > > Yeah, the latter is really the important part I think. In 7.4 that is > the default (and only) behavior, but you can get it in 7.3 by using the > switch. So the 7.3 pg_dump should be good enough for this purpose. 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? I would try all this stuff myself, but unfortunately my PG 7.4 machine isn't available yet, so I'm grasping at straws... Thanks, Rich Cullingford