pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed7.2.2 upgrade, pg_dumpall / reload problem
3+ messages / 2 participants
[nested] [flat]
* 7.2.2 upgrade, pg_dumpall / reload problem
@ 2002-09-10 08:08 Adam Witney <awitney@sghms.ac.uk>
0 siblings, 1 reply; 3+ messages in thread
From: Adam Witney @ 2002-09-10 08:08 UTC (permalink / raw)
To: pgsql-admin
Hi,
I just upgraded from 7.2 to 7.2.2 using Mark Liyanage's prebuilt MacOSX 10.2
package
http://www.entropy.ch/software/macosx/postgresql/
I followed the instructions to first use pg_dumpall to dump all the data,
then upgraded and restarted the server. However when I try to reload the
data I get an error
[mrc1-003:/usr/local/pgsql] postgres% ./bin/psql -f /tmp/postgresql.dump
template1
You are now connected to database template1.
DELETE 0
CREATE USER
CREATE USER
DELETE 0
CREATE GROUP
ALTER GROUP
ALTER GROUP
You are now connected to database template1 as user admin.
CREATE DATABASE
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
Any help would be most appreciated
Thanks
adam
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 7.2.2 upgrade, pg_dumpall / reload problem
@ 2002-09-10 15:02 Tom Lane <tgl@sss.pgh.pa.us>
parent: Adam Witney <awitney@sghms.ac.uk>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2002-09-10 15:02 UTC (permalink / raw)
To: Adam Witney <awitney@sghms.ac.uk>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 7.2.2 upgrade, pg_dumpall / reload problem
@ 2002-09-11 20:05 Adam Witney <awitney@sghms.ac.uk>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Adam Witney @ 2002-09-11 20:05 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
On 10/9/02 4:02 pm, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> 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
Yes, I discovered that when I restarted the server after I 'upgraded' I was
still running 7.2!! problem is with the installer package I downloaded it is
impossible to tell what it actually did! Anyway, scrapped that idea and have
just installed 7.2.2 using fink and all is fine
Thanks
Adam
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-09-11 20:05 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10 08:08 7.2.2 upgrade, pg_dumpall / reload problem Adam Witney <awitney@sghms.ac.uk>
2002-09-10 15:02 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-09-11 20:05 ` Adam Witney <awitney@sghms.ac.uk>
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