pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Nelson Page <npage@dynamicsignal.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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: Fri, 26 Sep 2014 12:40:33 -0300
Message-ID: <20140926154033.GD5311@eldon.alvh.no-ip.org> (raw)
In-Reply-To: <f447dea157014c72a67ebf481de7d047@BN3PR0401MB1265.namprd04.prod.outlook.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Nelson Page wrote:
> As mentioned in the original title, we cannot reproduce this crash in 9.3.4, but can in 9.3.5.  So our particular crash does not go back to 9.1 (unless the 9.1 you mention is some other context maybe?)

Bug fixes are backpatched to supported branches; 9.3.4 is older than
9.1.14.  9.1.14 does contain the backpatched bug fix which seems to have
introduced the new bug:

commit 555d0b2000e33fd1ad2721015996a66c43bbb3cd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date:   Thu Jun 26 10:41:10 2014 -0700

    Back-patch "Fix EquivalenceClass processing for nested append relations".
    
    When we committed a87c729153e372f3731689a7be007bc2b53f1410, we somehow
    failed to notice that it didn't merely improve plan quality for expression
    indexes; there were very closely related cases that failed outright with
    "could not find pathkey item to sort".  The failing cases seem to be those
    where the planner was already capable of selecting a MergeAppend plan,
    and there was inheritance involved: the lack of appropriate eclass child
    members would prevent prepare_sort_from_pathkeys() from succeeding on the
    MergeAppend's child plan nodes for inheritance child tables.
    
    Accordingly, back-patch into 9.1 through 9.3, along with an extra
    regression test case covering the problem.
    
    Per trouble report from Michael Glaesemann.



-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


-- 
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)  latest in thread

Message-ID: <20140926154033.GD5311@eldon.alvh.no-ip.org>
Permalink:  ../20140926154033.GD5311@eldon.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20140926154033.GD5311@eldon.alvh.no-ip.org

 · 

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: alvherre@2ndquadrant.com, npage@dynamicsignal.com, michael.paquier@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #11457: The below query crashes 9.3.5, but not 9.3.4
  In-Reply-To: <20140926154033.GD5311@eldon.alvh.no-ip.org>
  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>

* 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