Re: duplicate primary index in bayes db from SpamAssassin - Mailing list pgsql-admin

From Tom Lane
Subject Re: duplicate primary index in bayes db from SpamAssassin
Date
Msg-id 6626.1210170774@sss.pgh.pa.us
Whole thread Raw
In response to Re: duplicate primary index in bayes db from SpamAssassin  (Michael Monnerie <michael.monnerie@it-management.at>)
Responses Re: duplicate primary index in bayes db from SpamAssassin
List pgsql-admin
Michael Monnerie <michael.monnerie@it-management.at> writes:
> So probably this is this kind of "should never ever happen" except your
> machine goes bye-bye badly. What makes me a bit worried is that pg_dump
> did not report an error at all, but made it's backup as if everything
> is OK. Could that be changed maybe so that in case of a problem it at
> least cries out loudly "broken db found" or so?

pg_dump intentionally does *not* look at the contents of indexes (at
least not any on user tables).  I think this is a good thing because
it makes it more likely that you can dump a damaged database.  pg_dump
is not supposed to be some kind of fsck-like tool.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Richard Broersma"
Date:
Subject: Re: column: on update update?
Next
From: Michael Monnerie
Date:
Subject: Re: duplicate primary index in bayes db from SpamAssassin