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 28407D1B4C8 for ; Mon, 15 Dec 2003 17:06:05 +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 78696-03 for ; Mon, 15 Dec 2003 13:05:43 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id EFE33D1B430 for ; Mon, 15 Dec 2003 13:05:36 -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 hBFH5g19013437; Mon, 15 Dec 2003 12:05:42 -0500 (EST) To: Rich Cullingford Cc: pgsql-admin@postgresql.org Subject: Re: Moving a database AND changing the superuser In-reply-to: <3FDDE816.3090804@sysd.com> References: <3FDDD39D.1060101@sysd.com> <13040.1071505135@sss.pgh.pa.us> <3FDDE816.3090804@sysd.com> Comments: In-reply-to Rich Cullingford message dated "Mon, 15 Dec 2003 11:57:58 -0500" Date: Mon, 15 Dec 2003 12:05:41 -0500 Message-ID: <13436.1071507941@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/198 X-Sequence-Number: 11705 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. regards, tom lane