Re: Duplicate values found when reindexing unique index

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Mason Hale <masonhale(at)gmail(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Duplicate values found when reindexing unique index
Date: 2007-12-31 18:41:07
Message-ID: 1199126467.9558.213.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 2007-12-31 at 13:14 -0500, Tom Lane wrote:
> "Mason Hale" <masonhale(at)gmail(dot)com> writes:
> > [postgres(at)dev-db-2 wal_archive]$ od -x 000000010000042200000058 | head -n15
> > 0000000 d05e 0002 0001 0000 0423 0000 0000 c100
> > 0000020 f7df 472e e701 4728 0000 0100 2000 0000
> > 0000040 a1db 81e6 0423 0000 0068 c000 0000 0000
> > 0000060 0048 0000 002c 0000 0000 0000 0423 0000
> > 0000100 0020 c100 0000 0000 0000 0000 0001 0000
> > 0000120 0000 0000 780b 2ede 9f68 00f5 7834 0000
> > 0000140 2f4d 0001 1f35 4774 0000 0000 0000 0000
> > 0000160 0000 0000 0000 0000 0000 0000 0000 0000
> > *
> > 0020000 d05e 0000 0001 0000 0422 0000 2000 5800
>
> Something else interesting about that: the apparent interloper page
> contains just a single WAL record, which appears to be a shutdown
> checkpoint bearing the timestamp "Thu Dec 27 2007, 16:55:01 EST".
> Not sure if Mason can correlate that with any recent activity...

OK, well thats clearly an archive overwrite then.

This is happening on the slave and it is a page-level overwrite, of WAL,
not an original page being propagated to WAL via full_page_writes. So it
is either unconnected to the index problems on the primary, or they are
linked in some way, which seems most likely. That tends to argue against
a pure hardware problem. So it could be device drivers, OS or Postgres
causing this. Don't see how it can be the latter...

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Mason Hale 2007-12-31 18:48:48 Re: Duplicate values found when reindexing unique index
Previous Message Tom Lane 2007-12-31 18:14:49 Re: Duplicate values found when reindexing unique index