pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gregory S. Williamson <gsw@globexplorer.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: restoring an old database to a new instance -- possible ?
Date: Thu, 11 Aug 2005 10:07:33 -0400
Message-ID: <21935.1123769253@sss.pgh.pa.us> (raw)
In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BB760@loki.wc.globexplorer.net>
References: <71E37EF6B7DCC1499CEA0316A2568328024BB760@loki.wc.globexplorer.net>

"Gregory S. Williamson" <gsw@globexplorer.com> writes:
> Using PostSQL 7.4 on a linux server, we have one postgres instance with two databases, "gex_runtime" and "mq_geoloc." We had a mishap in which we ran out of disk space. The failure occured in writing to the gex_runtime database.
> Then an unfortunate slip of an admin's keyboard led to the deletion of the gex_runtime data itself under the $PGDATA directory. As far as I can tell the mq_geoloc database files (about 3 gigs worth) were undamaged.

> We moved the mq_geoloc files to a safe location, and now have taken a copy of the runtime database from another server and recreated our server as far as the runtime database goes.

> My question is whether there is anyway of retrieving the old geoloc database ? Or is my reading of these files total out-of-line with reality ?

If you saved the *whole* $PGDATA directory tree including pg_clog and so
on, then there's nothing at all wrong with the mq_geoloc database.  Just
don't try to connect to gex_runtime.  I'd fire up a postmaster and
pg_dump mq_geoloc, then reload that data into your new installation.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <21935.1123769253@sss.pgh.pa.us>
Permalink:  ../21935.1123769253@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21935.1123769253@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, gsw@globexplorer.com
  Subject: Re: restoring an old database to a new instance -- possible ?
  In-Reply-To: <21935.1123769253@sss.pgh.pa.us>
  References: <71E37EF6B7DCC1499CEA0316A2568328024BB760@loki.wc.globexplorer.net> <21935.1123769253@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