pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Subject: Re: Crash with a CUBE query on 9.6
Date: Mon, 19 Dec 2016 23:25:13 -0800
Message-ID: <20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de> (raw)
In-Reply-To: <8821dc7b-50e0-b983-1590-344108b20855@iki.fi>
References: <ac5b0b69-744c-9114-6218-8300ac920e61@iki.fi>
	<4846.1482176240@sss.pgh.pa.us>
	<8821dc7b-50e0-b983-1590-344108b20855@iki.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hi,

On 2016-12-19 22:49:10 +0200, Heikki Linnakangas wrote:
> On 12/19/2016 09:37 PM, Tom Lane wrote:
> > Heikki Linnakangas <hlinnaka@iki.fi> writes:
> > > The attached test case crashes on REL9_6_STABLE and master. On 9.5, it
> > > worked.
> > 
> > As best I can tell, this is the fault of commit 804163bc2.
> 
> Oh, the ball is right back in my court, then.

> Yes, that seems straightforward. I came up with the attached. Will commit
> tomorrow, barring objections.

No objections.

But an observation about how the code evolved lately (partially by me,
don't get me wrong): I think we've too much smarts at execution
time. IMO deduplicating transition states and such should much rather
done at plan time, and if we do it right we'd also get rid of the uggly
way AggState->aggs is built up...

Andres


-- 
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 (9+ messages)  latest in thread

Message-ID: <20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de>
Permalink:  ../20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de

 · 

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: andres@anarazel.de, hlinnaka@iki.fi, tgl@sss.pgh.pa.us, david.rowley@2ndquadrant.com
  Subject: Re: Crash with a CUBE query on 9.6
  In-Reply-To: <20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de>
  References: <ac5b0b69-744c-9114-6218-8300ac920e61@iki.fi> <4846.1482176240@sss.pgh.pa.us> <8821dc7b-50e0-b983-1590-344108b20855@iki.fi> <20161220072513.qmp2holifj2yqnzb@alap3.anarazel.de>

* 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