Re: Upgrading from 7.4 to 8.0.1

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Shanta McBain <csc(at)computersystemconsulting(dot)ca>
Cc: "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Upgrading from 7.4 to 8.0.1
Date: 2005-09-04 22:31:24
Message-ID: 23384F87-3B2F-401D-81FC-580AFFD48C2A@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 5, 2005, at 6:41 AM, Shanta McBain wrote:

> bash-3.00$ postmaster -D /var/lib/pgsql/data/
> FATAL: database files are incompatible with server
> DETAIL: The data directory was initialized by PostgreSQL version
> 7.4, which
> is not compatible with this version 8.0.1.

> I have been trying to find how to do this in the docs but not had
> any results
> on finding the procedure. There was one mention of backing up the
> db and
> restoring.

This is actually what you need to do. Between major versions (and
some minor versions) the database file structure changes. In brief,
you'll need to start up your old database server (7.4, perhaps
reinstalling it if you deleted it), dump the database (using the
pg_dump for v8), start your v8 database server, and load the dump
into the new database. You can find details at the documentation here:

http://www.postgresql.org/docs/8.0/interactive/install-upgrading.html

Hope this helps.

Michael Glaesemann
grzm myrealbox com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sterpu Victor 2005-09-05 00:00:30 concatenate text
Previous Message Shanta McBain 2005-09-04 21:41:23 Upgrading from 7.4 to 8.0.1