pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix BRIN to use SnapshotAny during summarization
Date: Thu, 06 Aug 2015 23:22:39 -0400
Message-ID: <19440.1438917759@sss.pgh.pa.us> (raw)
In-Reply-To: <928.1438900846@sss.pgh.pa.us>
References: <E1ZN4Fe-0000Nn-KB@gemulon.postgresql.org>
	<928.1438900846@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

... btw, I believe the reason for the failure here:
http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jaguarundi&dt=2015-08-06%2011%3A52%3A17

is that brin_page_items() is unsafe.  It's accessing
state->bdesc->bd_tupdesc, which is pointing at the tupdesc of an index
Relation that it no longer has open; not only directly, but via
brin_deform_tuple().  All you need is a relcache flush to be accessing
garbage.  I haven't dug down thoroughly, but I'd not be surprised if there
were also some dereferences of bd_index, which is equally a dangling
pointer.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (4+ messages)

Message-ID: <19440.1438917759@sss.pgh.pa.us>
Permalink:  ../19440.1438917759@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19440.1438917759@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix BRIN to use SnapshotAny during summarization
  In-Reply-To: <19440.1438917759@sss.pgh.pa.us>
  References: <E1ZN4Fe-0000Nn-KB@gemulon.postgresql.org> <928.1438900846@sss.pgh.pa.us> <19440.1438917759@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