Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4qvK-00038n-3p for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Nov 2016 15:05:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4qvJ-0004jh-MX for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Nov 2016 15:05:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4pqk-0000pB-9W for pgsql-bugs@postgresql.org; Thu, 10 Nov 2016 13:57:06 +0000 Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c4pqh-0006Mi-Az for pgsql-bugs@postgresql.org; Thu, 10 Nov 2016 13:57:05 +0000 Received: by mail-yw0-x236.google.com with SMTP id a10so12022293ywa.3 for ; Thu, 10 Nov 2016 05:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=s3-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YWZsMhbVRzvLhiQ1fkEmvIwBlNH7mNVcyE/ZukMtmyE=; b=u+WfM/e1KupK5El3dEdSWHh437q/DPffSaxonAMUF3PMYkA0GY3IS04r30Q8QyAiwa TVZ/YHnswR45tT4BFtbj9IbDBJ2PUgxDpWqU2fvU8g3cDpijRr1Ikd/qM+OZiDEGAfLP dPzxWAWxVW3GSu8dOD/eD637AQP1IXpe/Y5N3TIxJPuguBbXfR0+ccDMaNltmEQhiObo k5922EaLf6fEG+AYEQyUHhrlKJqBAcivOx+3olOocwTet3/b26zZxzyX0igvvfYq0PXJ LPCseLQ+3PMYxAU3Tw2Pe8/pI/QY7P7AOSOIjT+QXpfA2YRvNjhdcsoQP6k/Lel6NY4i n5IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YWZsMhbVRzvLhiQ1fkEmvIwBlNH7mNVcyE/ZukMtmyE=; b=FThBcmit6Siojq7br5m2KH19bKrrQNGzPVjcOjc5gC+ZOMBLmr40EJW0Zi4HcDFDja bJQllDk+3o/VaJ9iK0Mn9G27+ye84hV9RT332bE9C2BawIxNwVa9bXWZ4hxisDb2pWdc P/KAVUfMIr6tCGVeCSxKDctFLEDHsZA6Pza/0Y/pV1DOzFTTmhgpfPHYqbxocL6Z9rJu BmyBSi0e3GWjQS0JMrjc2nigjWvU4EXCm7oGBp9wQ8FR9JhCAWs81CmMvOYvofKa9Jv1 UZz4ouHz9Q2LvLgOESo0L5ZbYOZHU+zK9MGLZfWSeQ9KQCLzCdtzeVKq0Qou1hQMiZi4 DLsA== X-Gm-Message-State: ABUngvdUxSh1o9kD0nkCQATGSK6wNO8WB9cop6OOiD5qehkjq+lDii0RbO6qCk5SKeJHaVdtzFhmTDnpgoA/CiO8 X-Received: by 10.202.108.8 with SMTP id h8mr2628044oic.146.1478786222020; Thu, 10 Nov 2016 05:57:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.73.7 with HTTP; Thu, 10 Nov 2016 05:56:41 -0800 (PST) In-Reply-To: <23469.1478717448@sss.pgh.pa.us> References: <23469.1478717448@sss.pgh.pa.us> From: Steve Randall Date: Thu, 10 Nov 2016 07:56:41 -0600 Message-ID: Subject: Re: Parallel Scan Bug: invalid attnum: 0 To: Tom Lane Cc: pgsql-bugs@postgresql.org Content-Type: multipart/mixed; boundary=001a1142e2b276c0f80540f2bf99 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --001a1142e2b276c0f80540f2bf99 Content-Type: multipart/alternative; boundary=001a1142e2b276c0f20540f2bf97 --001a1142e2b276c0f20540f2bf97 Content-Type: text/plain; charset=UTF-8 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 wrote: > Steve Randall 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 > --001a1142e2b276c0f20540f2bf97 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have been able to reproduce the error in my development = environment.=C2=A0 EXPLAIN output is attached.=C2=A0 EXPLAIN ANALYZE fails = with the error mentioned. =C2=A0

I have to do a little c= onfiguring to get the stack trace logs, but it will be a couple of weeks be= fore they are ready.=C2=A0 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&= gt; writes:
> running pg 9.6.1 on AWS
> max_parallel_workers_per_gather =3D 4
> This only occurs in some schemas, not all.=C2=A0 The affected schemas = have
> approx 1 million rows in the table.=C2=A0 Much larger schemas (65 mill= ion 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?=C2=A0 How about a stack trace
from the errfinish call?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 regards, tom lane

--001a1142e2b276c0f20540f2bf97-- --001a1142e2b276c0f80540f2bf99 Content-Type: text/plain; charset=US-ASCII; name="attnum_explain.txt" Content-Disposition: attachment; filename="attnum_explain.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ivcezexx0 IkxpbWl0ICAoY29zdD0yNTgwMC44OC4uMjU4MDEuMjQgcm93cz0xIHdpZHRo PTc1NikiCiIgIC0+ICBXaW5kb3dBZ2cgIChjb3N0PTI1ODAwLjg4Li4yNTgw MS4yNCByb3dzPTEgd2lkdGg9NzU2KSIKIiAgICAgICAgLT4gIEZpbmFsaXpl IEdyb3VwQWdncmVnYXRlICAoY29zdD0yNTgwMC44OC4uMjU4MDEuMTIgcm93 cz0xIHdpZHRoPTM2OCkiCiIgICAgICAgICAgICAgIEdyb3VwIEtleTogKCdT Myc6OmNoYXJhY3RlciB2YXJ5aW5nKSIKIiAgICAgICAgICAgICAgLT4gIFNv cnQgIChjb3N0PTI1ODAwLjg4Li4yNTgwMC44OSByb3dzPTMgd2lkdGg9MzY4 KSIKIiAgICAgICAgICAgICAgICAgICAgLT4gIEdhdGhlciAgKGNvc3Q9MTAw MC4wMC4uMjU4MDAuODYgcm93cz0zIHdpZHRoPTM2OCkiCiIgICAgICAgICAg ICAgICAgICAgICAgICAgIFdvcmtlcnMgUGxhbm5lZDogMyIKIiAgICAgICAg ICAgICAgICAgICAgICAgICAgLT4gIFBhcnRpYWwgR3JvdXBBZ2dyZWdhdGUg IChjb3N0PTAuMDAuLjI0ODAwLjU2IHJvd3M9MSB3aWR0aD0zNjgpIgoiICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBHcm91cCBLZXk6ICdTMyc6 OmNoYXJhY3RlciB2YXJ5aW5nIgoiICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAtPiAgUGFyYWxsZWwgU2VxIFNjYW4gb24gcm9fc3VtbWFyaWVz ICAoY29zdD0wLjAwLi4yMzkxNS44MSByb3dzPTExMDU5IHdpZHRoPTExOCki CiIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEZpbHRl cjogKGRheSA9ICcyMDE2LTExLTA3Jzo6ZGF0ZSkiCg== --001a1142e2b276c0f80540f2bf99 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --001a1142e2b276c0f80540f2bf99--