Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyQnl-0002js-AO for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Apr 2017 22:31:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cyQnk-0006ta-U3 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Apr 2017 22:31:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cyQnj-0006hq-ME for pgsql-bugs@postgresql.org; Wed, 12 Apr 2017 22:31:48 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([202.78.240.226]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cyQne-0004IX-SZ for pgsql-bugs@postgresql.org; Wed, 12 Apr 2017 22:31:46 +0000 Received: from localhost (localhost [127.0.0.1]) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTP id 9CA9080322; Thu, 13 Apr 2017 10:31:37 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at cat-porwal-prod-mail1.servers.catalyst.net.nz Received: from cat-porwal-prod-mail1.catalyst.net.nz ([127.0.0.1]) by localhost (cat-porwal-prod-mail1.servers.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SylsFN3fPqpD; Thu, 13 Apr 2017 10:31:36 +1200 (NZST) Received: from [192.168.1.64] (222-152-213-179.jetstream.xtra.co.nz [222.152.213.179]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id 68EB38035F; Thu, 13 Apr 2017 10:31:36 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=catalyst; t=1492036296; bh=w/fqoKS0b1lt94Hcqpjkj8GRThOTo4dYZIsoCzRD15c=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=V3vvpdQvN3cw033h0ygjAMqWGpkSwQWai+gv3XoJv7aJfGzWK7CttPMyvLJl/P5/K T+68f+k3omeQ6XeUPqxpWQyzq07bLAfUGNrAQ14WOSg6YdY2xhyd11yJ5P2BKnjo6y bJIVak3mp12Wdi3ah326OHbCYSkNMdYA4PuLSiAY= Subject: Re: Missing PRIMARY KEYs and duplicated rows To: Chris Pacejo References: <7c077ec8-7dcb-9e92-09f3-8890ecd2bc9e@catalyst.net.nz> Cc: pgsql-bugs@postgresql.org From: Mark Kirkwood Message-ID: <74cccd1a-0db6-d0e1-5ae9-6c671d6285a6@catalyst.net.nz> Date: Thu, 13 Apr 2017 10:31:36 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 13/04/17 10:22, Chris Pacejo wrote: > On Apr 12, 2017 6:13 PM, "Mark Kirkwood" > > > 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