Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEue1-0000ea-1P for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2016 08:33:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bEue0-0004BV-DM for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jun 2016 08:33:20 +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 1bEuce-0001qf-Ef for pgsql-hackers@postgresql.org; Mon, 20 Jun 2016 08:31:56 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEucb-0007vq-MB for pgsql-hackers@postgresql.org; Mon, 20 Jun 2016 08:31:55 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id u5K8VqUI025025 for ; Mon, 20 Jun 2016 17:31:52 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 8E3D45F65A for ; Mon, 20 Jun 2016 17:31:52 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 7FF035F623 for ; Mon, 20 Jun 2016 17:31:52 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.68]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTP id 65477400372 for ; Mon, 20 Jun 2016 17:31:52 +0900 (JST) Message-ID: <5767A9E3.2080600@lab.ntt.co.jp> Date: Mon, 20 Jun 2016 17:31:31 +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: <15695.1465827695@sss.pgh.pa.us> <17170.1465830165@sss.pgh.pa.us> <20756.1465834072@sss.pgh.pa.us> <9513.1465921122@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: pgsql-hackers@postgresql.org 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 ran tpc-h's queries on this version and it's successful. The error is fixed. commit 705ad7f3b523acae0ddfdebd270b7048b2bb8029 Author: Tom Lane Date: Sun Jun 19 13:11:40 2016 -0400 Regards, Tatsuro Yamada NTT OSS Center On 2016/06/18 1:26, Robert Haas wrote: > On Fri, Jun 17, 2016 at 9:29 AM, Robert Haas wrote: >> On Fri, Jun 17, 2016 at 9:04 AM, Amit Kapila wrote: >>> Attached, please find updated patch based on above lines. Due to addition >>> of projection path on top of partial paths, some small additional cost is >>> added for parallel paths. In one of the tests in select_parallel.sql the >>> plan was getting converted to serial plan from parallel plan due to this >>> cost, so I have changed it to make it more restrictive. Before changing, I >>> have debugged the test to confirm that it was due to this new projection >>> path cost. I have added two new tests as well to cover the new code added >>> by patch. >> >> I'm going to go work on this patch now. > > Here is a revised version, which I plan to commit in a few hours > before the workday expires. I kept it basically as Amit had it, but I > whacked the comments around some and, more substantively, avoided > inserting and/or charging for a Result node when that's not necessary. > > > > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers