Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 97C2DD45792 for ; Tue, 31 Jan 2012 17:25:46 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RsLCy-00022l-Rj for pgsql-bugs@postgresql.org; Tue, 31 Jan 2012 21:25:46 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0VLPTHI010831; Tue, 31 Jan 2012 16:25:29 -0500 (EST) To: Robert Haas cc: Bridget Frey , Michael Brauwerman , Peter Geoghegan , "pgsql-bugs@postgresql.org" Subject: Re: BUG #6200: standby bad memory allocations on SELECT In-reply-to: References: <23550.1327978836@sss.pgh.pa.us> <1137480939183049761@unknownmsgid> <25365.1327985956@sss.pgh.pa.us> <25481.1327986356@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 31 Jan 2012 12:56:17 -0500" Date: Tue, 31 Jan 2012 16:25:29 -0500 Message-ID: <10830.1328045129@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/275 X-Sequence-Number: 32342 Robert Haas writes: > On Tue, Jan 31, 2012 at 12:05 AM, Tom Lane wrote: >> BTW, after a bit more reflection it occurs to me that it's not so much >> that the data is necessarily *bad*, as that it seemingly doesn't match >> the tuple descriptor that the backend's trying to interpret it with. > Hmm. Could this be caused by the recovery process failing to obtain a > sufficiently strong lock on a buffer before replaying some WAL record? Well, I was kinda speculating that inadequate locking could result in use of a stale (or too-new?) tuple descriptor, and that would be as good a candidate as any if the basic theory were right. But Bridget says they are not doing any DDL, so it's hard to see how there'd be any tuple descriptor mismatch at all. Still baffled ... regards, tom lane