Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkXu0-0000cW-KT for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Sep 2016 14:44:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkXtz-00064Q-HI for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Sep 2016 14:44:35 +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 1bkXty-00064J-S6 for pgsql-hackers@postgresql.org; Thu, 15 Sep 2016 14:44:34 +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 1bkXts-0004E5-2e for pgsql-hackers@postgresql.org; Thu, 15 Sep 2016 14:44:34 +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 u8FEiOsF009704; Thu, 15 Sep 2016 10:44:24 -0400 From: Tom Lane To: Robert Haas cc: Peter Eisentraut , pgsql-hackers Subject: Re: select_parallel test fails with nonstandard block size In-reply-to: References: <90634e20-097a-e4fd-67d5-fb2c42f0dd71@2ndquadrant.com> <7617.1473947997@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 15 Sep 2016 10:11:16 -0400" Date: Thu, 15 Sep 2016 10:44:24 -0400 Message-ID: <9703.1473950664@sss.pgh.pa.us> X-Pg-Spam-Score: -4.1 (----) 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 Thu, Sep 15, 2016 at 9:59 AM, Tom Lane wrote: >> Possibly we ought to change things so that the default value of >> min_parallel_relation_size is a fixed number of bytes rather >> than a fixed number of blocks. Not sure though. > The reason why this was originally reckoned in blocks is because the > data is divided between the workers on the basis of a block number. > In the degenerate case where blocks < workers, the extra workers will > get no blocks at all, and thus no rows at all. Well, sure, but at any reasonable value of min_parallel_relation_size that won't be a factor. The question here is whether we want the default value to be platform-independent. I notice that both config.sgml and postgresql.conf.sample claim that the default value is 8MB, which this discussion reveals to be a lie. If you want to keep the default expressed as "1024" and not "(8 * 1024 * 1024) / BLCKSZ", we need to change the documentation. 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