need help for PostgreSQL consistency check mechanism

From: "Chen, Dongdong (GE Healthcare)" <DongdongChen(at)ge(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: need help for PostgreSQL consistency check mechanism
Date: 2009-04-23 12:10:53
Message-ID: 0332CB5EB6327940B291055AAD964221042DF9C9@SHAMLVEM02.e2k.ad.ge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We are now working on database check mechanism in our application. The
situation is when server shutdown abnormally, the postmaster.pid file
still exists when reboot, But the PostgreSQL database itself may not be
damaged. We just do not want to restore from backups when the database
is still good even if server shutdown abnormally. If the PostgreSQL
database records are damaged for sure when server reboots, then the
restoration should be executed automatically.
So, is there any way or tool to automatically check the consistency
status of PostgreSQL database when server starts up (like the DBCC in
SQL server)?

Thanks for the suggestion.

B.R.
Kevin Chen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-04-23 13:29:09 Re: pg_lsclusters error after pg_dropcluster
Previous Message Karsten Hilbert 2009-04-23 11:57:46 Re: varchar vs. text + constraint/triggers was: Help request to improve function performance