pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adam Witney <awitney@sghms.ac.uk>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: 7.2.2 upgrade, pg_dumpall / reload problem
Date: Tue, 10 Sep 2002 11:02:53 -0400
Message-ID: <19614.1031670173@sss.pgh.pa.us> (raw)
In-Reply-To: <B9A36729.75EE%a.witney@sghms.ac.uk>
References: <B9A36729.75EE%a.witney@sghms.ac.uk>

Adam Witney <awitney@sghms.ac.uk> 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



view thread (3+ messages)  latest in thread

Message-ID: <19614.1031670173@sss.pgh.pa.us>
Permalink:  ../19614.1031670173@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19614.1031670173@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, awitney@sghms.ac.uk
  Subject: Re: 7.2.2 upgrade, pg_dumpall / reload problem
  In-Reply-To: <19614.1031670173@sss.pgh.pa.us>
  References: <B9A36729.75EE%a.witney@sghms.ac.uk> <19614.1031670173@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox