Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCN3T-0000IT-7R for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 08:17:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCN3S-0008Na-Ll for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 08:17:06 +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 1bCN3Q-0008M2-L4 for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 08:17:04 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCN3M-0003Hn-SM for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 08:17:02 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id u5D8Gsqp026574; Mon, 13 Jun 2016 17:16:54 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 4EBC95F594; Mon, 13 Jun 2016 17:16:54 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 411E55F58E; Mon, 13 Jun 2016 17:16:54 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.68]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTP id 39C6740027D; Mon, 13 Jun 2016 17:16:54 +0900 (JST) Message-ID: <575E6BE6.8040006@lab.ntt.co.jp> Date: Mon, 13 Jun 2016 17:16:38 +0900 From: Tatsuro Yamada User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 Subject: Re: ERROR: ORDER/GROUP BY expression not found in targetlist References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Amit Kapila , David Rowley Cc: Thomas Munro , Robert Haas , Amit Kapila , Pg Hackers X-TM-AS-MML: disable X-Pg-Spam-Score: -4.0 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, I applied your patch and run tpc-h. Then I got new errors on Q4,12,17 and 19. ERROR: Aggref found in non-Agg plan node. See bellow, ---------------------------------- postgres=# \i queries/4.explain.sql ERROR: Aggref found in non-Agg plan node STATEMENT: explain analyze select o_orderpriority, count(*) as order_count from orders where o_orderdate >= date '1993-10-01' and o_orderdate < date '1993-10-01' + interval '3' month and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority LIMIT 1; ---------------------------------- Regards, Tatsuro Yamada NTT OSS Center On 2016/06/13 16:18, Amit Kapila wrote: > On Mon, Jun 13, 2016 at 11:05 AM, David Rowley > wrote: > > > > On 13 June 2016 at 15:39, Thomas Munro > wrote: > > > What is going on here? > > > > ... > > > > > > > > postgres=# set max_parallel_workers_per_gather = 2; > > > SET > > > postgres=# explain select length(data) from logs group by length(data); > > > ERROR: ORDER/GROUP BY expression not found in targetlist > > > > Seems like this was caused by 04ae11f62e643e07c411c4935ea6af46cb112aa9 > > > > In create_grouping_paths(), we are building partial_grouping_path and same is used for gather path and other grouping paths (for partial paths). However, we don't use it for partial path list and sort path due to which path target for Sort path is different from what we have expected. Is there a problem in applying partial_grouping_path for partial pathlist? Attached patch just does that and I don't see error with patch. > > With Regards, > Amit Kapila. > EnterpriseDB: http://www.enterprisedb.com > > > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers