pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: Chris Pacejo <cpacejo@clearskydata.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Missing PRIMARY KEYs and duplicated rows
Date: Thu, 13 Apr 2017 10:31:36 +1200
Message-ID: <74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz> (raw)
In-Reply-To: <CAC8iE5iXZauGLC3eBWKHHGSWFsP2W1BsRnP789AjaRFY2pGEdQ@mail.gmail.com>
References: <CAC8iE5ieb5tnFUnkO9L81sNQbg3F5MAUnv5b8GNoN+Se61ZA2g@mail.gmail.com>
	<7c077ec8-7dcb-9e92-09f3-8890ecd2bc9e@catalyst.net.nz>
	<CAC8iE5iQw7Jkg6FtkQU=G9r1NuyQcaLuvkFwS+d=7qiVvqtihw@mail.gmail.com>
	<CAC8iE5gX_4aXtGm3OV4kKkH=U83KexTGC=Cxqd7kEYKy0AHrQA@mail.gmail.com>
	<CAC8iE5iXZauGLC3eBWKHHGSWFsP2W1BsRnP789AjaRFY2pGEdQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 13/04/17 10:22, Chris Pacejo wrote:

> On Apr 12, 2017 6:13 PM, "Mark Kirkwood" 
> <mark.kirkwood@catalyst.net.nz <mailto:mark.kirkwood@catalyst.net.nz>> 
> wrote:
>
>
>     I'd be inclined to suspect the hardware with weird behaviour like
>     that (memory and disk errors in particular).
>
>
>
> Me too, but how would that explain the observation that it's occurring 
> only within one database (and on all tables within that database)? The 
> only thing all tables within a database have in common on disk is that 
> they reside in the same directory.
>
> And the ctids of the duplicate rows indicate that they're allocated 
> sequentially in the same page as the legitimate rows. (The tables are 
> mostly all less than a dozen rows.) How could this be explained by 
> disk corruption?
>
> I suppose memory corruption is possible, but it still seems oddly 
> specific.

Things disappearing and coming back sounds more like bad memory to as 
well. I'd recommend taking that server down and running memcheck.

regards

Mark



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz>
Permalink:  ../74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz/
Also on:    postgresql.org/message-id/74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: mark.kirkwood@catalyst.net.nz, cpacejo@clearskydata.com
  Subject: Re: Missing PRIMARY KEYs and duplicated rows
  In-Reply-To: <74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz>
  References: <CAC8iE5ieb5tnFUnkO9L81sNQbg3F5MAUnv5b8GNoN+Se61ZA2g@mail.gmail.com> <7c077ec8-7dcb-9e92-09f3-8890ecd2bc9e@catalyst.net.nz> <CAC8iE5iQw7Jkg6FtkQU=G9r1NuyQcaLuvkFwS+d=7qiVvqtihw@mail.gmail.com> <CAC8iE5gX_4aXtGm3OV4kKkH=U83KexTGC=Cxqd7kEYKy0AHrQA@mail.gmail.com> <CAC8iE5iXZauGLC3eBWKHHGSWFsP2W1BsRnP789AjaRFY2pGEdQ@mail.gmail.com> <74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox