Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0803E133616B for ; Fri, 11 Feb 2011 07:03:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 03936-09 for ; Fri, 11 Feb 2011 11:03:32 +0000 (UTC) X-Greylist: delayed 00:56:17.591556 by SQLgrey-1.7.6 Received: from nimrod.no (sid.nimrod.no [195.139.160.2]) by mail.postgresql.org (Postfix) with ESMTP id 6A6BC1337B47 for ; Fri, 11 Feb 2011 07:03:30 -0400 (AST) Received: from sid.nimrod.no (localhost.localdomain [127.0.0.1]) by nimrod.no (8.13.1/8.13.1/Nimrod8.13) with ESMTP id p1BA7BLI018062; Fri, 11 Feb 2011 11:07:11 +0100 Received: (from dag@localhost) by sid.nimrod.no (8.13.1/8.13.1/Submit) id p1BA7B1V018059; Fri, 11 Feb 2011 11:07:11 +0100 X-Authentication-Warning: sid.nimrod.no: dag set sender to dag@nimrod.no using -f To: Tom Lane Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5876: Incorrectly reported column value References: <201102101018.p1AAINGa001460@wwwmaster.postgresql.org> <13143.1297394881@sss.pgh.pa.us> From: Dag Lem Organization: Nimrod Date: 11 Feb 2011 11:07:10 +0100 In-Reply-To: <13143.1297394881@sss.pgh.pa.us> Message-ID: Lines: 41 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/108 X-Sequence-Number: 29380 Tom Lane writes: > Maybe you can duplicate the problem with a synthesized or anonymized > data set? It's unlikely anybody will spend much time on such a vague > report as this. I reloaded the same data set overnight, and I could not reproduce the error (which was present in one in 3.6 million rows). However, I got a "duplicate key value violates unique constrant" on another table, without actually duplicating any key value on insert (this was for one row in 3.3 million). Because of this inconsistency and the fact that I ran these tests on a laptop (no ECC), on a hunch I ran memtest86+. And lo and behold: Faulty memory :-/ > Not the same query, surely? AFAIR the rbtree code is only used in GIN > indexes at the moment, so this would presumably be related to an update > of that GIN index. But again, it's hard to expect somebody to go > looking for this without a more definite way of producing the problem. Right, this error occured on insert. The problems I reported were most probably caused by memory errors, and I apologize for posting a bug report without checking that first. I also apologize for the vague report; however unfortunately it's quite difficult to construct a test case if you can't reliably reproduce the error, and the (rather big) data set which caused it in the first place cannot be shared. In any case, I'll try to do my homework better before posting another bug report :-) I'd like to use this opportunity to commend you and the other developers for your excellent work on PostgreSQL! -- Best regards, Dag Lem