pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phil Sorber <phil@omniti.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Segfault in backend CTE code
Date: Wed, 25 Jan 2012 17:13:44 -0500
Message-ID: <12620.1327529624@sss.pgh.pa.us> (raw)
In-Reply-To: <CADAkt-jK4o==uiy-Q9sn+rPDPWSzo+OWfq2aeeZWafi9ZRmWXw@mail.gmail.com>
References: <CADAkt-iWfSvovEMd4-sT15OQ+YK4FC_YbZDefxwUK5EwrWe4bA@mail.gmail.com>
	<20955.1327383788@sss.pgh.pa.us>
	<CADAkt-h=ut28S_k1zWzyx+-qdHAahOB24LUMA5z5QoF3WVppBQ@mail.gmail.com>
	<6418.1327438984@sss.pgh.pa.us>
	<CADAkt-jK4o==uiy-Q9sn+rPDPWSzo+OWfq2aeeZWafi9ZRmWXw@mail.gmail.com>

Phil Sorber <phil@omniti.com> writes:
> That helped a lot. I now have a simple test case that I can reliably
> re-produce the segfault and now also a patch that fixes it.

[ pokes at that... ]  Hmm.  I think what this proves is that that
optimization in EvalPlanQualStart is just too cute for its own good,
and that the only safe fix is to take it out.  That code path is
(obviously) none too well tested, so we should not have it setting
up execution tree structures that are not like those used normally.
It's just begging for trouble.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <12620.1327529624@sss.pgh.pa.us>
Permalink:  ../12620.1327529624@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12620.1327529624@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, phil@omniti.com
  Subject: Re: Segfault in backend CTE code
  In-Reply-To: <12620.1327529624@sss.pgh.pa.us>
  References: <CADAkt-iWfSvovEMd4-sT15OQ+YK4FC_YbZDefxwUK5EwrWe4bA@mail.gmail.com> <20955.1327383788@sss.pgh.pa.us> <CADAkt-h=ut28S_k1zWzyx+-qdHAahOB24LUMA5z5QoF3WVppBQ@mail.gmail.com> <6418.1327438984@sss.pgh.pa.us> <CADAkt-jK4o==uiy-Q9sn+rPDPWSzo+OWfq2aeeZWafi9ZRmWXw@mail.gmail.com> <12620.1327529624@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