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 10:49:35 -0500
Message-ID: <16043.1478792975@sss.pgh.pa.us> (raw)
In-Reply-To: <CABVd52XMq4FPRtkiAdJ7d0D-Uh+fTVSL3EXtkYZkn6aPNy7xtA@mail.gmail.com>
References: <CABVd52UAdGXpg_rCk46egpNKYdXOzCjuJ1zG26E2xBe_8bj+Fg@mail.gmail.com>
<23469.1478717448@sss.pgh.pa.us>
<CABVd52XMq4FPRtkiAdJ7d0D-Uh+fTVSL3EXtkYZkn6aPNy7xtA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Steve Randall <srandall@s3.com> writes:
> I have been able to reproduce the error in my development environment.
> EXPLAIN output is attached. EXPLAIN ANALYZE fails with the error
> mentioned.
Ah, I've duplicated it. My previous attempt to reverse-engineer your
test case was not selecting a partial-aggregation plan.
Immediate impression is that the logic for planning partial grouped
aggregation did not get the zero-sort-keys case right. In my hands
it produces
TRAP: BadArgument("!(nkeys > 0)", File: "tuplesort.c", Line: 763)
2016-11-10 10:44:26.955 EST [14415] LOG: server process (PID 15726) was terminated by signal 6: Aborted
but in a non-assert build of course you'd get some other misbehavior.
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
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: <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>
* 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