Skip site navigation (1) Skip section navigation (2)

Re: Corrupt data directory

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: KÖPFERL Robert <robert(dot)koepferl(at)sonorys(dot)at>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Corrupt data directory
Date: 2005-02-22 14:33:37
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Tue, Feb 22, 2005 at 12:09:28 +0100,
  KÖPFERL Robert <robert(dot)koepferl(at)sonorys(dot)at> wrote:
> Hi,
> what is to do if somehow, someif the data directory went corrupt?
> (kill -9, Plug out)
> Are there any tools or other ways to rescue that or is the only way
> rm *; initdb
> and restore a backup?

You just restart postgres. It will clean up properly.

Note this assumes that you haven't disabled fsync or left write caching
on for your disk drives.

If a disk drive actually goes bad (or enough drives to lose a raid array),
then you need to go to backups.

In response to

pgsql-admin by date

Next:From: Bruno Wolff IIIDate: 2005-02-22 14:47:51
Subject: Re: pg_hba.conf
Previous:From: Dick DaviesDate: 2005-02-22 14:25:16
Subject: Re: pg_hba.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group