Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4O1l-0000o4-Qj for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2013 04:28:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4O1k-0000sz-U1 for pgsql-bugs@arkaria.postgresql.org; Wed, 31 Jul 2013 04:28:44 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4O1j-0000ss-UF for pgsql-bugs@postgresql.org; Wed, 31 Jul 2013 04:28:44 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4O1c-0008MM-GZ for pgsql-bugs@postgresql.org; Wed, 31 Jul 2013 04:28:43 +0000 Received: from intern.anarazel.de (unknown [78.100.53.5]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 8FFFA4F0001; Wed, 31 Jul 2013 06:28:34 +0200 (CEST) Date: Wed, 31 Jul 2013 06:28:32 +0200 From: Andres Freund To: maciek@heroku.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8347: PANIC: heap_insert_redo: failed to add tuple when applying WAL Message-ID: <20130731042832.GG19053@alap2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: 0.1 (/) 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 2013-07-31 01:27:39 +0000, maciek@heroku.com wrote: > The following bug has been logged on the website: > > Bug reference: 8347 > Logged by: Maciek Sakrejda > Email address: maciek@heroku.com > PostgreSQL version: 9.2.4 > Operating system: Ubuntu 12.04.2 LTS 64-bit > Description: > > Running into a recovery failure on a customer's replica: > > > Jul 31 00:11:55: LOG: restored log file "00000001000000E200000067" from > archive > Jul 31 00:11:55: WARNING: will not overwrite a used ItemId > Jul 31 00:11:55: CONTEXT: xlog redo insert: rel 1663/16385/16619; tid > 25260/37 > Jul 31 00:11:55: PANIC: heap_insert_redo: failed to add tuple > Jul 31 00:11:55: CONTEXT: xlog redo insert: rel 1663/16385/16619; tid > 25260/37 > > > I see a similar bug filed [1], but no replies. This happens repeatedly when > attempting to apply this segment. Any chance you could https://github.com/snaga/xlogdump that and the neighbouring segments? That might tell us whether we're dealing with broken locking or possibly disk corruption (doesn't sound too likely). Just to be sure, you're not running with full_page_writes = off or something? Could you possibly run a patched postgres against that, to get more info? Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs