pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Farmer <mail@andrewfarmer.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 7.3.4 Table corruption
Date: Wed, 25 Aug 2004 21:56:50 -0400
Message-ID: <10928.1093485410@sss.pgh.pa.us> (raw)
In-Reply-To: <412BEE3D.8070409@andrewfarmer.com>
References: <412BEE3D.8070409@andrewfarmer.com>

Andrew Farmer <mail@andrewfarmer.com> writes:
> My question is, if I load the good dump into a clean database, and then 
> find the underlying file that represents the broken table and copy it 
> over the top of the broken table, am I likely to face any big problems?

This strikes me as a real good way to shoot yourself in the foot ;-).
Better take a backup and be prepared to restore from it.  And I'd
suggest experimenting in a scratch installation before you try it for
real.

Having said that, I think it would work, if your "clean database" is
another DB in the same cluster (you could *not* copy from data prepared
under a different postmaster).  And you'll need to copy all the indexes
on that table, and its toast table and toast table index if it has one.
And shut down the postmaster while you do the copying.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <10928.1093485410@sss.pgh.pa.us>
Permalink:  ../10928.1093485410@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10928.1093485410@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, mail@andrewfarmer.com
  Subject: Re: 7.3.4 Table corruption
  In-Reply-To: <10928.1093485410@sss.pgh.pa.us>
  References: <412BEE3D.8070409@andrewfarmer.com> <10928.1093485410@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