Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 348AA2E0042 for ; Wed, 7 May 2008 11:33:02 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56409-05 for ; Wed, 7 May 2008 11:32:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id EC1C92E002D for ; Wed, 7 May 2008 11:32:57 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m47EWswu006627; Wed, 7 May 2008 10:32:54 -0400 (EDT) To: Michael Monnerie cc: pgsql-admin@postgresql.org Subject: Re: duplicate primary index in bayes db from SpamAssassin In-reply-to: <200805071103.53981@zmi.at> References: <200804141757.21574@zmi.at> <20473.1208446891@sss.pgh.pa.us> <21948.1209587149@sss.pgh.pa.us> <200805071103.53981@zmi.at> Comments: In-reply-to Michael Monnerie message dated "Wed, 07 May 2008 11:03:53 +0200" Date: Wed, 07 May 2008 10:32:54 -0400 Message-ID: <6626.1210170774@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/48 X-Sequence-Number: 29132 Michael Monnerie 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