Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDbtR-0004UI-0A for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jun 2016 18:19:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDbtQ-0003dw-JJ for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jun 2016 18:19:52 +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 1bDbtO-0003Wn-Ij for pgsql-hackers@postgresql.org; Thu, 16 Jun 2016 18:19:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDbtL-0008IN-UD for pgsql-hackers@postgresql.org; Thu, 16 Jun 2016 18:19:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5GIJiaZ023017; Thu, 16 Jun 2016 14:19:44 -0400 From: Tom Lane To: Amit Kapila cc: Robert Haas , Amit Kapila , David Rowley , Thomas Munro , Pg Hackers Subject: Re: ERROR: ORDER/GROUP BY expression not found in targetlist In-reply-to: References: <15695.1465827695@sss.pgh.pa.us> <17170.1465830165@sss.pgh.pa.us> <25521.1465837597@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Tue, 14 Jun 2016 12:41:00 +0530" Date: Thu, 16 Jun 2016 14:19:44 -0400 Message-ID: <23016.1466101184@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 Amit Kapila writes: > On Mon, Jun 13, 2016 at 10:36 PM, Tom Lane wrote: >> min_parallel_relation_size, or min_parallelizable_relation_size, or >> something like that? > You are right that such a variable will make it simpler to write tests for > parallel query. I have implemented such a guc and choose to keep the name > as min_parallel_relation_size. Pushed with minor adjustments. My first experiments with this say that we should have done this long ago: https://www.postgresql.org/message-id/22782.1466100870@sss.pgh.pa.us > One thing to note is that in function > create_plain_partial_paths(), curently it is using PG_INT32_MAX/3 for > parallel_threshold to check for overflow, I have changed it to INT_MAX/3 so > as to be consistent with guc.c. I am not sure if it is advisable to use > PG_INT32_MAX in guc.c as other similar parameters use INT_MAX. I agree that using INT_MAX is more consistent with the code elsewhere in guc.c, and more correct given that we declare the variable in question as int not int32. But you need to include to use INT_MAX ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers