From: Steve Randall <srandall@s3.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Parallel Scan Bug: invalid attnum: 0
Date: Thu, 10 Nov 2016 07:56:41 -0600
Message-ID: <CABVd52XMq4FPRtkiAdJ7d0D-Uh+fTVSL3EXtkYZkn6aPNy7xtA@mail.gmail.com> (raw)
In-Reply-To: <23469.1478717448@sss.pgh.pa.us>
References: <CABVd52UAdGXpg_rCk46egpNKYdXOzCjuJ1zG26E2xBe_8bj+Fg@mail.gmail.com>
<23469.1478717448@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I have been able to reproduce the error in my development environment.
EXPLAIN output is attached. EXPLAIN ANALYZE fails with the error
mentioned.
I have to do a little configuring to get the stack trace logs, but it will
be a couple of weeks before they are ready. Tomorrow I head to San
Francisco for a few days off prior to pgConf.
On Wed, Nov 9, 2016 at 12:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Steve Randall <srandall@s3.com> writes:
> > running pg 9.6.1 on AWS
> > max_parallel_workers_per_gather = 4
> > This only occurs in some schemas, not all. The affected schemas have
> > approx 1 million rows in the table. Much larger schemas (65 million
> rows)
> > and smaller schemas(100K rows) do not have the problem.
>
> FWIW, I failed to duplicate this from the information provided.
> Can you get us EXPLAIN output for the troublesome case, or does it
> fail before printing the EXPLAIN output? How about a stack trace
> from the errfinish call?
>
> 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-bugsAttachments:attnum_explain.txt (text/plain, 796B) download
"Limit (cost=25800.88..25801.24 rows=1 width=756)"
" -> WindowAgg (cost=25800.88..25801.24 rows=1 width=756)"
" -> Finalize GroupAggregate (cost=25800.88..25801.12 rows=1 width=368)"
" Group Key: ('S3'::character varying)"
" -> Sort (cost=25800.88..25800.89 rows=3 width=368)"
" -> Gather (cost=1000.00..25800.86 rows=3 width=368)"
" Workers Planned: 3"
" -> Partial GroupAggregate (cost=0.00..24800.56 rows=1 width=368)"
" Group Key: 'S3'::character varying"
" -> Parallel Seq Scan on ro_summaries (cost=0.00..23915.81 rows=11059 width=118)"
" Filter: (day = '2016-11-07'::date)"
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: srandall@s3.com, tgl@sss.pgh.pa.us
Subject: Re: Parallel Scan Bug: invalid attnum: 0
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>
* 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