Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CD6684764FA for ; Tue, 10 Sep 2002 11:02:49 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id EEA56475FF1 for ; Tue, 10 Sep 2002 11:02:48 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8AF2rKo019615; Tue, 10 Sep 2002 11:02:53 -0400 (EDT) To: Adam Witney Cc: pgsql-admin Subject: Re: 7.2.2 upgrade, pg_dumpall / reload problem In-reply-to: References: Comments: In-reply-to Adam Witney message dated "Tue, 10 Sep 2002 09:08:57 +0100" Date: Tue, 10 Sep 2002 11:02:53 -0400 Message-ID: <19614.1031670173@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/106 X-Sequence-Number: 5645 Adam Witney writes: > I just upgraded from 7.2 to 7.2.2 using Mark Liyanage's prebuilt MacOSX 10.2 > package > ... > FATAL 1: Database "bugasbase" does not exist in the system catalog. > psql:/tmp/postgresql.dump:21: \connect: FATAL 1: Database "bugasbase" does > not exist in the system catalog. > I have a database called BugasBase.... However this seems to be trying to > find bugasbase Yeah. This is a problem in the 7.2 pg_dumpall: it's careless about quoting database names. You'll need to hand-edit the dump script to fix it. (But hmm ... actually I thought the fix for that issue was a band-aid patch in psql. Are you sure you are invoking the 7.2.2 psql, and not a 7.2 copy?) There wasn't any reason to do a dump and restore for a 7.2 to 7.2.2 upgrade anyway, so if you haven't blown away your old $PGDATA directory yet, I'd counsel just forgetting the dump and starting your new postmaster in the old data directory. A dump made with 7.2.2's pg_dump should work okay. regards, tom lane