Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 2789D420B3A for ; Wed, 1 Feb 2012 17:06:43 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RshO7-0003Zr-A5 for pgsql-bugs@postgresql.org; Wed, 01 Feb 2012 21:06:43 +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 q11L6RqA023818; Wed, 1 Feb 2012 16:06:27 -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> <15472.1328113177@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 01 Feb 2012 12:58:15 -0500" Date: Wed, 01 Feb 2012 16:06:27 -0500 Message-ID: <23817.1328130387@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: 0.4 (/) X-Archive-Number: 201202/25 X-Sequence-Number: 32368 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. > It would be nice to get a dump of what PostgreSQL thought the entire > block looked like at the time the crash happened. That information is > presumably already in the core dump, but I'm not sure if there's a > nice way to extract it using gdb. It probably would be possible to get the page out of the dump, but I'd be really surprised if that proved much. By the time the crash-dump-making code gets around to examining the shared memory, the other process that's hypothetically changing the page will have done its work and moved on. A crash in process X doesn't freeze execution in process Y, at least not in any Unixoid system I've ever heard of. regards, tom lane