pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Bridget Frey <bridget.frey@redfin.com>
Cc: Michael Brauwerman <michael.brauwerman@redfin.com>
Cc: Peter Geoghegan <peter@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6200: standby bad memory allocations on SELECT
Date: Wed, 01 Feb 2012 16:06:27 -0500
Message-ID: <23817.1328130387@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+Tgmoaecqw4yiBJnkdcrWCys5eCfn4=5ahSqPxy2rcoh=6Kag@mail.gmail.com>
References: <CAHOc93mRXhU0CMko1jLvxwkKz42jTRZ63xRxDATsEw2t5ukOZQ@mail.gmail.com>
	<CA+TgmoZ6S5e46xThsHKv6-vV58f==D4_TH_ECB2sQsZRngL+8Q@mail.gmail.com>
	<CAHOc93mzK58JO8XJdHHp=6tLRjv45WYY4cxsdkAZYNnpNQ7RjA@mail.gmail.com>
	<CA+TgmoYxXZQhEosbnd=NaJ8=6oW-AyLJ+RukFBBQ-xYwq5Lfiw@mail.gmail.com>
	<CAHDXJ6jes_Zv1OFo=EZn-HGOrjKoy2uLz3Sg4ShXhb0yMY_-5A@mail.gmail.com>
	<CAEYLb_VDqHiysP_wgDsef7CXo7+P3tW3qSa9KR5+bWqpc=kJgg@mail.gmail.com>
	<CAHDXJ6j6Oyke3z_eNSqA1O8G+3M359c3r5NjUp25F5sRUmSPDA@mail.gmail.com>
	<CA+TgmoYDuD1HOX=uaQ8BXn5WZoM406SV6Cutcsc54LPsbDnTWg@mail.gmail.com>
	<CAHOc93kpe7yPM6h0ORoxBnF8mA5YxacepQEYqEOkqzOLs9UesA@mail.gmail.com>
	<23550.1327978836@sss.pgh.pa.us>
	<1137480939183049761@unknownmsgid>
	<25365.1327985956@sss.pgh.pa.us>
	<25481.1327986356@sss.pgh.pa.us>
	<CA+TgmoZdj2oo8AB2aOVs_H9jyPBupawQKrjJdfaE+DP+5xDmmQ@mail.gmail.com>
	<10830.1328045129@sss.pgh.pa.us>
	<CA+TgmoaiNK0T1=F0pj-tHHdOcn-JDDT5KrTV0zourNUNTJ-uUw@mail.gmail.com>
	<15472.1328113177@sss.pgh.pa.us>
	<CA+Tgmoaecqw4yiBJ! nkdcrWCys5eCfn4=5ahSqPxy2rcoh=6Kag@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> 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



view thread (29+ messages)  latest in thread

Message-ID: <23817.1328130387@sss.pgh.pa.us>
Permalink:  ../23817.1328130387@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23817.1328130387@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, bridget.frey@redfin.com, michael.brauwerman@redfin.com, peter@2ndquadrant.com
  Subject: Re: BUG #6200: standby bad memory allocations on SELECT
  In-Reply-To: <23817.1328130387@sss.pgh.pa.us>
  References: <CAHOc93mRXhU0CMko1jLvxwkKz42jTRZ63xRxDATsEw2t5ukOZQ@mail.gmail.com> <CAHOc93mzK58JO8XJdHHp=6tLRjv45WYY4cxsdkAZYNnpNQ7RjA@mail.gmail.com> <CA+TgmoYxXZQhEosbnd=NaJ8=6oW-AyLJ+RukFBBQ-xYwq5Lfiw@mail.gmail.com> <CAHDXJ6jes_Zv1OFo=EZn-HGOrjKoy2uLz3Sg4ShXhb0yMY_-5A@mail.gmail.com> <CAEYLb_VDqHiysP_wgDsef7CXo7+P3tW3qSa9KR5+bWqpc=kJgg@mail.gmail.com> <CAHDXJ6j6Oyke3z_eNSqA1O8G+3M359c3r5NjUp25F5sRUmSPDA@mail.gmail.com> <CA+TgmoYDuD1HOX=uaQ8BXn5WZoM406SV6Cutcsc54LPsbDnTWg@mail.gmail.com> <CAHOc93kpe7yPM6h0ORoxBnF8mA5YxacepQEYqEOkqzOLs9UesA@mail.gmail.com> <23550.1327978836@sss.pgh.pa.us> <1137480939183049761@unknownmsgid> <25365.1327985956@sss.pgh.pa.us> <25481.1327986356@sss.pgh.pa.us> <CA+TgmoZdj2oo8AB2aOVs_H9jyPBupawQKrjJdfaE+DP+5xDmmQ@mail.gmail.com> <10830.1328045129@sss.pgh.pa.us> <CA+TgmoaiNK0T1=F0pj-tHHdOcn-JDDT5KrTV0zourNUNTJ-uUw@mail.gmail.com> <15472.1328113177@sss.pgh.pa.us> <23817.1328130387@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox