pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lamar Owen <lamar.owen@wgcr.org>
To: Glerum, Joe - KyEM <jglerum@kydes.dma.state.ky.us>
Cc: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Cc: 'pgsql-novice@postgresql.org' <pgsql-novice@postgresql.org>
Subject: Re: PG_VERSION Errors???
Date: Mon, 03 Apr 2000 16:19:34 -0400
Message-ID: <38E8FCD6.EF595AC4@wgcr.org> (raw)
References: <B126DFE90604D411B44A00805FEDEF0901B402@KPC250>

"Glerum, Joe - KyEM" wrote:
>         Database system in directory /usr/local/pgsql/data is not compatable
> with this version of Postgres, or we are unable to read the PG_VERSION file.
> Explanation from the ValidatePgVersion: Version number in file
> '/usr/local/pgsql/data/PG_VERSION' should be 6.5, not 6.4.
 
> When I change the 6.4 to 6.5 and restart the postmaster I can't do so with
> errors to change it back to 6.4.

Did you do a dump/initdb/restore cycle?  For a major version upgrade
(such s 6.4.2 to 6.5.3), you must first dump your old database using
pg_dumpall, clear out the database directory, initdb with the new
version, then restore using 'psql -e template1 <dumped-data-file'.

By the error message you gave, I'm assuming you are using the standard,
non-RPM distribution.  The RPM distribution since 6.5.1 or so has
included a set of tools to make the migration easier.  Upon an upgrade
of the RPM's, a copy of the old executables is saved; also, a
postgresql-dump utility is provided to use the old executables to make a
dump.  Then, the new version can be started up.

--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11



view thread (5+ messages)  latest in thread

Message-ID: <38E8FCD6.EF595AC4@wgcr.org>
Permalink:  ../38E8FCD6.EF595AC4@wgcr.org/
Also on:    postgresql.org/message-id/38E8FCD6.EF595AC4@wgcr.org

 · 

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: lamar.owen@wgcr.org, jglerum@kydes.dma.state.ky.us, pgsql-general@postgresql.org, pgsql-novice@postgresql.org
  Subject: Re: PG_VERSION Errors???
  In-Reply-To: <38E8FCD6.EF595AC4@wgcr.org>
  References: <B126DFE90604D411B44A00805FEDEF0901B402@KPC250> <38E8FCD6.EF595AC4@wgcr.org>

* 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