Re: Duplicate values found when reindexing unique index

From: "Michael Orozco" <morozco(at)numarkcu(dot)org>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Mason Hale" <masonhale(at)gmail(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Duplicate values found when reindexing unique index
Date: 2008-01-04 14:00:46
Message-ID: FD4D6FBAA8631042A2A121E1B0A15AE502256E39@ncuexch2.ncu.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Someone tell me now to get off this list

-----Original Message-----
From: pgsql-bugs-owner(at)postgresql(dot)org [mailto:pgsql-bugs-owner(at)postgresql(dot)org] On Behalf Of Alvaro Herrera
Sent: Thursday, January 03, 2008 8:30 PM
To: Tom Lane
Cc: Mason Hale; pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] Duplicate values found when reindexing unique index

Tom Lane escribió:

> Given this, and the index corruption you showed before (the wrong
> sibling link, which would represent index breakage quite independent of
> what was in the heap), and the curious contents of your WAL files
> (likewise not explainable by anything going wrong within a table),
> I'm starting to think that Occam's razor says you've got hardware
> problems. Or maybe a kernel-level bug that is causing writes to get
> discarded.

FWIW, on a customer's setup we've seen something that looks very much
like this: table pages being rewritten by something that I couldn't
identify, but which certainly weren't normal table or index pages. On
looking at your report and diagnosis, I'm inclined to think that they
were WAL records due to the similarity and regularity. (I'll take a
look again).

I also wrote them off as hardware failure or kernel bugs.

I don't think we've been seen the problem again. But what happened in
the end was that the customer asked us whether we could make something
about CRC'ing the files we use in order to detect system failure
proactively.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2008-01-04 15:02:25 Re: Duplicate values found when reindexing unique index
Previous Message Alvaro Herrera 2008-01-04 02:29:32 Re: Duplicate values found when reindexing unique index