AW: more corruption

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tim Perdue <tperdue(at)valinux(dot)com>
Cc: The Hermit Hacker <scrappy(at)hub(dot)org>, pgsql-hackers(at)hub(dot)org
Subject: AW: more corruption
Date: 2000-07-10 10:42:22
Message-ID: 11C1E6749A55D411A9670001FA687963367FE5@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> You have recreated what pg_upgrade does. It is for upgrading system
> tables. If only your system tables were hosed, you are fine now.

Only if your previous system has been vacuum'ed and no dml afterwards.
Otherwise you also need to copy your old pg_log.

>
>
> > The Hermit Hacker wrote:
> > > just a quick thought ... have you tried shutting down and
> restrating the
> > > postmaster? basically, "reset" the shared memory? v7.x handles
> > > corruptions like that alot cleaner, but previous versions
> caused odd
> > > results if shared memory got corrupted ...
> >
> > Well, I've rebooted twice. In fact, it was a hard lock that
> caused the
> > problems. When the machine was brought back up, the db was foobar.
> >
> > I'm doing something really really evil to avoid losing the
> last days'
> > data:
> >
> > -I created a new db
> > -used the old db schema to create all new blank tables

vacuum new db
(I would do a tar backup of the whole old db)
vacuum old db, if that is possible

> > -copied the physical table files from the old data
> directory into the
> > new database directory

if above vacuum old db was not possible copy old pg_log

> > -currently vacuuming the new db - nothing is barfing yet
> > -now hopefully I can create my indexes and be back in business
> >
> > Tim

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-07-10 11:05:06 AW: Lessons learned on how to build 7.0.2 on AIX 4.x
Previous Message Zeugswetter Andreas SB 2000-07-10 10:38:17 AW: Lessons learned on how to build 7.0.2 on AIX 4.x