Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCVK7-0004Cg-BN for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 17:06:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bCVK6-0000Ul-Mj for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jun 2016 17:06:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCVK6-0000Ub-9A for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 17:06:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bCVJz-0002oP-Bq for pgsql-hackers@postgresql.org; Mon, 13 Jun 2016 17:06: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 u5DH6b0f025522; Mon, 13 Jun 2016 13:06:37 -0400 From: Tom Lane To: Robert Haas cc: Amit Kapila , 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> Comments: In-reply-to Robert Haas message dated "Mon, 13 Jun 2016 12:46:01 -0400" Date: Mon, 13 Jun 2016 13:06:37 -0400 Message-ID: <25521.1465837597@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 Robert Haas writes: > On Mon, Jun 13, 2016 at 11:02 AM, Tom Lane wrote: >> BTW, decent regression tests could be written without the need to create >> enormous tables if the minimum rel size in create_plain_partial_paths() >> could be configured to something less than 1000 blocks. I think it's >> fairly crazy that that arbitrary constant is hard-wired anyway. Should >> we make it a GUC? > That was proposed before, and I didn't do it mostly because I couldn't > think of a name for it that didn't sound unbelievably corny. min_parallel_relation_size, or min_parallelizable_relation_size, or something like that? > Also, > the whole way that algorithm works is kind of a hack and probably > needs to be overhauled entirely in some future release. I'm worried > about having the words "backward compatibility" thrown in my face when > it's time to improve this logic. But aside from those two issues I'm > OK with exposing a knob. I agree it's a hack, and I don't want to expose anything about the number-of-workers scaling behavior, for precisely that reason. But a threshold on the size of a table to consider parallel scans for at all doesn't seem unreasonable. 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