Thread: Database consistency checker

Database consistency checker

From
"Richard Harris"
Date:
<p><font face="Arial" size="2">Hi,</font><p><font face="Arial" size="2">Does PosgreSQL has a capability to check the
internalconsistency of tables and and indexes, i.e., a tool like the DBCC capability in MS SQL Server? If so, where is
itdocumented?</font><p><font face="Arial" size="2">Thanks,</font><br /><font face="Arial" size="2">Rich Harris</font> 

Re: Database consistency checker

From
Tom Lane
Date:
"Richard Harris" <Richard_Harris@adp.com> writes:
> <P><FONT SIZE=3D2 FACE=3D"Arial">Does PosgreSQL has a capability to check t=
> he internal consistency of tables and and indexes, i.e., a tool like the DB=
> CC capability in MS SQL Server? If so, where is it documented?</FONT></P>

(Please don't use HTML in postings to the PG lists.)

We do not have any automatic database verifiers.  In general there are
no known repeatable failure modes in Postgres, and thus not a lot of
scope for tools that look for such errors ... we prefer to spend our
development efforts on making the system bulletproof in the first place ;-)

            regards, tom lane