pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Nelson Page <npage@dynamicsignal.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11457: The below query crashes 9.3.5, but not 9.3.4
Date: Wed, 01 Oct 2014 10:22:01 -0400
Message-ID: <9603.1412173321@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqS3xsWezFEnyQPNajUVkrTGyKjsP3rqAETDvsw0SyDCCQ@mail.gmail.com>
References: <20140920002314.2558.52018@wrigleys.postgresql.org>
	<CAB7nPqS7MXb2ENB=_EB0bwtM92eTbZOFwfz5MvZFy8GpRwuZYQ@mail.gmail.com>
	<4251b913e1464058b8e08d3e625bede3@BN3PR0401MB1265.namprd04.prod.outlook.com>
	<20140923035306.GD5311@eldon.alvh.no-ip.org>
	<5411.1411445043@sss.pgh.pa.us>
	<CAB7nPqQ58v+fNny6D+04fmkT-YAUuo9XU-=nT6HjAWRf+TfaSg@mail.gmail.com>
	<f447dea157014c72a67ebf481de7d047@BN3PR0401MB1265.namprd04.prod.outlook.com>
	<20140926154033.GD5311@eldon.alvh.no-ip.org>
	<7269.1411750638@sss.pgh.pa.us>
	<CAB7nPqRr51vK2cxdpQd3LBrHFZGEPGr7LHg_cpVHhnj921kgUQ@mail.gmail.com>
	<11520.1411999594@sss.pgh.pa.us>
	<CAB7nPqQOb8FvuJmhKTEXXiQxvjx97Qrj5qL1CbOPaifv3K+kJw@mail.gmail.com>
	<CAB7nPqS9e_WjEmBPQk=RGZfdue5O=SPF_jmP9qvjc0=OKw181g@mail.gmail.com>
	<966.1412142208@sss.pgh.pa.us>
	<CAB7nPqS3xsWezFEnyQPNajUVkrTGyKjsP3rqAETDvsw0SyDCCQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier <michael.paquier@gmail.com> writes:
> This approach is far more solid than my previous stuff and makes the
> approach I took really brittle...

Hey, the idea to add a field was mine, so don't beat yourself up about
it :-).  Sometimes it takes working out an idea to realize it's bad.

> Looking at your code, I am wondering if
> it would not be safer to add some assertions in find_childrel_top_parent
> and find_childrel_parents, something like a check on RELOPT_BASEREL for
> rel->reloptkind before returning a result. Er, those new functions should
> always finishing by scanning a base rel, right?

Yeah, not a bad idea.

> Btw, this code will need minor adjustments for REL9_2_STABLE and
> REL9_3_STABLE. Is a backpatch down to 9.1 to be considered?

The bugs we're working on here are definitely demonstrable back to 9.2.
I'm not sure about 9.1 yet; but considering that a87c72915 had to get
back-patched as far as 9.1, there may well be some manifestations of
these problems visible in 9.1.  (The new regression test that I wrote
doesn't seem to show any big problems there, but maybe I'm just short
a case or two.)

			regards, tom lane


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



view thread (16+ messages)

Message-ID: <9603.1412173321@sss.pgh.pa.us>
Permalink:  ../9603.1412173321@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9603.1412173321@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, michael.paquier@gmail.com, alvherre@2ndquadrant.com, npage@dynamicsignal.com
  Subject: Re: BUG #11457: The below query crashes 9.3.5, but not 9.3.4
  In-Reply-To: <9603.1412173321@sss.pgh.pa.us>
  References: <20140920002314.2558.52018@wrigleys.postgresql.org> <CAB7nPqS7MXb2ENB=_EB0bwtM92eTbZOFwfz5MvZFy8GpRwuZYQ@mail.gmail.com> <4251b913e1464058b8e08d3e625bede3@BN3PR0401MB1265.namprd04.prod.outlook.com> <20140923035306.GD5311@eldon.alvh.no-ip.org> <5411.1411445043@sss.pgh.pa.us> <CAB7nPqQ58v+fNny6D+04fmkT-YAUuo9XU-=nT6HjAWRf+TfaSg@mail.gmail.com> <f447dea157014c72a67ebf481de7d047@BN3PR0401MB1265.namprd04.prod.outlook.com> <20140926154033.GD5311@eldon.alvh.no-ip.org> <7269.1411750638@sss.pgh.pa.us> <CAB7nPqRr51vK2cxdpQd3LBrHFZGEPGr7LHg_cpVHhnj921kgUQ@mail.gmail.com> <11520.1411999594@sss.pgh.pa.us> <CAB7nPqQOb8FvuJmhKTEXXiQxvjx97Qrj5qL1CbOPaifv3K+kJw@mail.gmail.com> <CAB7nPqS9e_WjEmBPQk=RGZfdue5O=SPF_jmP9qvjc0=OKw181g@mail.gmail.com> <966.1412142208@sss.pgh.pa.us> <CAB7nPqS3xsWezFEnyQPNajUVkrTGyKjsP3rqAETDvsw0SyDCCQ@mail.gmail.com> <9603.1412173321@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