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 B3756D1B8B6 for ; Mon, 15 Dec 2003 16:19:19 +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 68905-09 for ; Mon, 15 Dec 2003 12:18:56 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7F8CDD1BB36 for ; Mon, 15 Dec 2003 12:18:50 -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 hBFGIt19013041; Mon, 15 Dec 2003 11:18:55 -0500 (EST) To: Rich Cullingford Cc: pgsql-admin@postgresql.org Subject: Re: Moving a database AND changing the superuser In-reply-to: <3FDDD39D.1060101@sysd.com> References: <3FDDD39D.1060101@sysd.com> Comments: In-reply-to Rich Cullingford message dated "Mon, 15 Dec 2003 10:30:37 -0500" Date: Mon, 15 Dec 2003 11:18:55 -0500 Message-ID: <13040.1071505135@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/194 X-Sequence-Number: 11701 Rich Cullingford writes: > I did a pg_dumpall in preparation for moving one of our databases from > PG7.3 to PG7.4, but I just realized I have another problem: that DB > (which has served us faithfully for some time) was created for superuser > 'postgres,' whilst our new DBs use a superuser name that's aligned with > our product. If you used 7.4 pg_dump, I believe that the dump script does not assume any particular superuser name (it says RESET SESSION AUTHENTICATION when it wants to get back into superuser state, so as long as you start it as a superuser, you're golden). IIRC, 7.3 pg_dump had an option to specify the superuser name to use. regards, tom lane