Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 612231288B2D for ; Wed, 1 Feb 2012 12:19:53 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RscuW-0007Dh-HR for pgsql-bugs@postgresql.org; Wed, 01 Feb 2012 16:19:52 +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 q11GJbQ2015473; Wed, 1 Feb 2012 11:19:37 -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> <10830.1328045129@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 01 Feb 2012 10:38:40 -0500" Date: Wed, 01 Feb 2012 11:19:37 -0500 Message-ID: <15472.1328113177@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/8 X-Sequence-Number: 32351 Robert Haas writes: > No, I wasn't thinking about a tuple descriptor mismatch. I was > imagining that the page contents themselves might be in flux while > we're trying to read from it. Oh, gotcha. Yes, that's a horribly plausible idea. All it'd take is one WAL replay routine that hasn't been upgraded to acquire sufficient buffer locks. Pre-hot-standby, there was no reason for them to be careful about locking. On the other hand, if that were the cause, you'd expect the symptoms to be a bit more variable... regards, tom lane