Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YFshy-0002sF-FV for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Jan 2015 23:04:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YFshx-00005B-Um for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Jan 2015 23:04:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YFshw-0008UM-Lw for pgsql-bugs@postgresql.org; Mon, 26 Jan 2015 23:04:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YFsht-0002WT-Qe for pgsql-bugs@postgresql.org; Mon, 26 Jan 2015 23:04:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0QN4VmM018572; Mon, 26 Jan 2015 18:04:31 -0500 From: Tom Lane To: Erik Jones cc: Peter Geoghegan , pgsql-bugs Subject: Re: Duplicate key existant/index visibility bug in 9.3.3 In-reply-to: <9ED28E1E-9F4D-4794-A1DD-0D49D085A6E6@engineyard.com> References: <17148.1422310763@sss.pgh.pa.us> <17880.1422312207@sss.pgh.pa.us> <9ED28E1E-9F4D-4794-A1DD-0D49D085A6E6@engineyard.com> Comments: In-reply-to Erik Jones message dated "Mon, 26 Jan 2015 14:54:59 -0800" Date: Mon, 26 Jan 2015 18:04:31 -0500 Message-ID: <18571.1422313471@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Erik Jones writes: > On Jan 26, 2015, at 2:43 PM, Tom Lane wrote: >> Maybe. That would require at least one crash recovery to have happened on >> the server, which Erik seemed to be claiming had not happened. But >> if there were any crashes then it would possibly fit. > Definitely nothing recent crash/recovery-wise but digging further back in the logs it looks like there was a crash recovery run startup back on 2014-09-30, which was about a week after this server was created. I suppose it’s possible that the index has been corrupt since then but only now showing something visible? Doesn't fit this specific bug fix --- the case it addresses would cause already-existing rows to become unreachable from the index during crash recovery. AFAICS that could not create a latent problem for rows inserted later. Still, this isn't the only bug fixed in 9.3.4/9.3.5. Personally I'm wondering about c0bd128c81c2b23a1cbc53305180fca51b3b61c3. I'll try to refrain from asking why a server initdb'd in September wasn't running 9.3.5 from inception. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs