pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Randall <srandall@s3.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Parallel Scan Bug: invalid attnum: 0
Date: Thu, 10 Nov 2016 11:35:42 -0500
Message-ID: <20679.1478795742@sss.pgh.pa.us> (raw)
In-Reply-To: <16043.1478792975@sss.pgh.pa.us>
References: <CABVd52UAdGXpg_rCk46egpNKYdXOzCjuJ1zG26E2xBe_8bj+Fg@mail.gmail.com>
	<23469.1478717448@sss.pgh.pa.us>
	<CABVd52XMq4FPRtkiAdJ7d0D-Uh+fTVSL3EXtkYZkn6aPNy7xtA@mail.gmail.com>
	<16043.1478792975@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

I wrote:
> Immediate impression is that the logic for planning partial grouped
> aggregation did not get the zero-sort-keys case right.

Yeah: after flattening your view, the planner was left with GROUP BY
'S3'::character varying, which is a no-op, but it mistakenly inserted
a no-op Sort into the plan to sort by that.  One-liner fix is here
if you need it right away:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=7defc3b97a31537547053946808a83e72...


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

Message-ID: <20679.1478795742@sss.pgh.pa.us>
Permalink:  ../20679.1478795742@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20679.1478795742@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, srandall@s3.com
  Subject: Re: Parallel Scan Bug: invalid attnum: 0
  In-Reply-To: <20679.1478795742@sss.pgh.pa.us>
  References: <CABVd52UAdGXpg_rCk46egpNKYdXOzCjuJ1zG26E2xBe_8bj+Fg@mail.gmail.com> <23469.1478717448@sss.pgh.pa.us> <CABVd52XMq4FPRtkiAdJ7d0D-Uh+fTVSL3EXtkYZkn6aPNy7xtA@mail.gmail.com> <16043.1478792975@sss.pgh.pa.us> <20679.1478795742@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