Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id AA6E9890061 for ; Wed, 1 Feb 2012 21:32:34 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RslXN-0007tO-JQ for pgsql-bugs@postgresql.org; Thu, 02 Feb 2012 01:32:34 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 2020B11F; Wed, 1 Feb 2012 17:32:46 -0800 (PST) Received: from perhan.alvh.no-ip.org ([190.95.26.35] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 1 Feb 2012 17:32:45 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1BD836E508; Wed, 1 Feb 2012 22:32:16 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Robert Haas , Bridget Frey , Michael Brauwerman , Peter Geoghegan , Pg Bugs Subject: Re: BUG #6200: standby bad memory allocations on SELECT From: Alvaro Herrera To: Tom Lane In-reply-to: <23817.1328130387@sss.pgh.pa.us> 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> <23817.1328130387@s ss.pgh.pa.us> Date: Wed, 01 Feb 2012 22:32:16 -0300 Message-Id: <1328146277-sup-6909@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-46366-05888 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: peter@2ndquadrant.com X-Assp-Original-Subject: Re: [BUGS] BUG #6200: standby bad memory allocations on SELECT Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/29 X-Sequence-Number: 32372 Excerpts from Tom Lane's message of mi=C3=A9 feb 01 18:06:27 -0300 2012: > 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. >=20 > > 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 i= s > > presumably already in the core dump, but I'm not sure if there's a > > nice way to extract it using gdb. >=20 > 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 it= s > 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. Maybe you can do something like send SIGSTOP to every other backend, then attach to them and find which one was touching the same buffer, then peek at what it was doing. --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support