From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: select_parallel test fails with nonstandard block size
Date: Thu, 15 Sep 2016 10:44:24 -0400
Message-ID: <9703.1473950664@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZ2w1=6KkpSpdMSxkrDezWXSq5t37HhnZ_Syj4d0MfRvA@mail.gmail.com>
References: <90634e20-097a-e4fd-67d5-fb2c42f0dd71@2ndquadrant.com>
<7617.1473947997@sss.pgh.pa.us>
<CA+TgmoZ2w1=6KkpSpdMSxkrDezWXSq5t37HhnZ_Syj4d0MfRvA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Sep 15, 2016 at 9:59 AM, Tom Lane <tgl@sss.pgh.pa.us> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com
Subject: Re: select_parallel test fails with nonstandard block size
In-Reply-To: <9703.1473950664@sss.pgh.pa.us>
References: <90634e20-097a-e4fd-67d5-fb2c42f0dd71@2ndquadrant.com> <7617.1473947997@sss.pgh.pa.us> <CA+TgmoZ2w1=6KkpSpdMSxkrDezWXSq5t37HhnZ_Syj4d0MfRvA@mail.gmail.com> <9703.1473950664@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox