pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard O. Hammer <rhammer@FastMail.fm>
To: PostgreSQL admin list <pgsql-admin@postgresql.org>
Subject: upgrading, but learned about pg_dumpall too late
Date: Sat, 20 Feb 2010 16:26:14 -0500
Message-ID: <4B805376.80705@FastMail.fm> (raw)

Hello,

I hope someone can tell me how to recover my database tables.  I recently 
upgraded to a new Linux server.  First I saved a copy of my 
/var/lib/pgsql/data/*, which was created with PG version 7.4.  On the new Linux 
server I have PG version 8.1.11.

But now, trying use my old tables, I discover that I should have saved the 
tables with the pg_dumpall command before I abandoned the version-7.4 Postgres 
server.  Unfortunately I did not know about pg_dumpall.

So now I'm wondering if there is a way I can read and update my version-7.4 data 
directory with my version-8.1 postmaster.

Here is one thing I've tried:
  bash-3.2$ pg_ctl start -D /var/lib/pgsql/old/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.1.1

Any suggestions will be appreciated.

Thank you,
Rich Hammer
Hillsborough, N.C.



view thread (4+ messages)  latest in thread

Message-ID: <4B805376.80705@FastMail.fm>
Permalink:  ../4B805376.80705@FastMail.fm/
Also on:    postgresql.org/message-id/4B805376.80705@FastMail.fm

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: rhammer@FastMail.fm
  Subject: Re: upgrading, but learned about pg_dumpall too late
  In-Reply-To: <4B805376.80705@FastMail.fm>

* 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