Re: database server crash und how can i check all tables - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: database server crash und how can i check all tables
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50F665F0@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Re: database server crash und how can i check all tables  (<Holger.Friedrich-Fa-Trivadis@it.nrw.de>)
List pgsql-admin
Holger Friedrich wrote:
> Muthana AL-Temimi wrote on Friday, June 19, 2015 12:33 PM:

>> But I want to check all the tables if everything is ok. Is there a command for such problem
>> (check).

> I keep hearing that pgdump is good at detecting database corruption, i.e. if pgdump runs into a
> problem you definitely have corruption.  (Not sure if the converse is also true.)

Restoring the dump somewhere else gives you even more confidence in the integrity
of your data.

But if you really want to know if everything is ok, you should have used the "-k"
option for initdb to enable block checksums.  Then a pg_dump would definitely tell
you if something is wrong.

Unfortunately checksums can only be enabled at initdb time, not later.

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From:
Date:
Subject: Re: database server crash und how can i check all tables
Next
From: Albe Laurenz
Date:
Subject: Re: database server crash und how can i check all tables