Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olLpx-0005AL-VU for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2022 03:03:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olLpw-0006FJ-Re for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Oct 2022 03:03:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olLpw-0006Co-IE for pgsql-hackers@lists.postgresql.org; Thu, 20 Oct 2022 03:03:12 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olLpu-0005ag-3k for pgsql-hackers@lists.postgresql.org; Thu, 20 Oct 2022 03:03:12 +0000 Received: by mail-pj1-x1042.google.com with SMTP id q10-20020a17090a304a00b0020b1d5f6975so1806046pjl.0 for ; Wed, 19 Oct 2022 20:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=m8j+UlUcFzKcCH1bNpYobh4Zpb8TVDHqLTgixVN+iq4=; b=O1UvxY5GpP5aCVpjTYmF9onR8NK2kiqRxZ7iqC1IsahozQLVu7hzSfNy5fjVqSd6zr 9SibJYC4dQK/xNOOfFXqGAKSjiOLl2o/8LCyZ1n15efeNRmkzeSgqZa+nrkDaWHxoXIq vunWktjroqOB8ellcZMh7fuKUZQbVPCv/zwzcX8oxmDy/NbrKPRqbFyJoskXoJd1mxHX KJxt1/SowoTTpNjekSFMLOgs2s35STzi8HL+5AzQZD75JUREDU/8YAd7AJ0RXdTYhWfD 2zwrFp2DTPKV6+ZkQ3EBh+z/XNHMiwaUCAupq8WvASz8pxyJs8aE9/mVvsF0iE3a3KOu cv4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m8j+UlUcFzKcCH1bNpYobh4Zpb8TVDHqLTgixVN+iq4=; b=OJN0h8QjzFZdjPPBs8dTqKJe95TpOCxxMJ2iJpUdi5J3RmqBc2a1mJis96MQqzOk2j cfaU0r7YFuOY8nQF+ukI3runqGHxhY/aSpe34lY21qyjPtdprHkWxizuTEpUxpDdDIFN dB++Aznac9J/Owfbi3188Gjw1ZKdMaa6R/KF1UMY7c0Tw+gZ9E4mwRALniLRrZtN9Od4 pleHmu2Wfdu0cf/XM7Qx99UofbLH21fFvW00T6NvosA0sZm+0p2MJA0jRdF0EhS4jOI/ 7NlTCce0Ah1grZCJvmEGyVUMS0u9+OLXpKXJmyU2bkPi/0y1jdqw0zIVK2GDpjogJjG0 biLg== X-Gm-Message-State: ACrzQf1KGImY8cjMao4O3m37YBJJfecD/RAyalSeIiksIYPMmbzFG4b4 1tgFlsnbxN0kpF4d/k0lJn3TI3iyzdbRNKJ/ X-Google-Smtp-Source: AMsMyM63Yok+GXPjb62scNclTAIZBQeNkOyesFXMuQxP6a39MABGdh7mcYee2UQUIe18JjFtuQnbXA== X-Received: by 2002:a17:902:7883:b0:17f:9503:abe5 with SMTP id q3-20020a170902788300b0017f9503abe5mr12137516pll.41.1666234987508; Wed, 19 Oct 2022 20:03:07 -0700 (PDT) Received: from [198.18.40.91] ([37.120.151.162]) by smtp.gmail.com with ESMTPSA id a8-20020a17090a688800b0020647f279fbsm607973pjd.29.2022.10.19.20.03.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2022 20:03:07 -0700 (PDT) Date: Thu, 20 Oct 2022 11:02:52 +0800 From: Zhang Mingli To: PostgreSQL Hackers Message-ID: <17c99615-2c3b-4e4e-9d0b-424a66a7bccd@Spark> In-Reply-To: <8b3760ce-5599-47d7-a4ca-06749e4d0b10@Spark> References: <8b3760ce-5599-47d7-a4ca-06749e4d0b10@Spark> Subject: Documentation refinement for Parallel Scans X-Readdle-Message-ID: 17c99615-2c3b-4e4e-9d0b-424a66a7bccd@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6350ba61_235ba861_1189" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --6350ba61_235ba861_1189 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, =46ound documents about parallel scan may be not so accurate. As said in parallel.smgl: =60=60=60 In a parallel sequential scan, the table's blocks will be divided among t= he cooperating processes.=C2=A0Blocks are handed out one at a time, so th= at access to the table remains sequential. =60=60=60 To my understanding, this was right before. Because we return one block i= f a worker ask for before commit 56788d2156. As comments inside table=5Fblock=5Fparallelscan=5Fnextpage: =60=60=60 Earlier versions of this would allocate the next highest block number to = the next worker to call this function. =60=60=60 And from commit 56788d2156, each parallel worker will try to get ranges o= f blocks =E2=80=9Cchunks=22. Access to the table remains sequential inside each worker=E2=80=99s proce= ss, but not across all workers or the parallel query. Shall we update the documents=3F Regards, Zhang Mingli --6350ba61_235ba861_1189 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,

=46ound documents about parallel scan may be not so accurate.

As said in parallel.smgl:

=60=60=60
In a parallel sequential scan, the table's blocks will be divided among t= he cooperating processes.&=23160;Bloc= ks are handed out one at a time, so that access to the table remains sequ= ential.
=60=60=60

To my understanding, this was right before. Because we return one block i= f a worker ask for before commit 56788d2156.
As comments inside table=5Fblock=5Fparallelscan=5Fnextpage:
=60=60=60
Earlier versions of this would allocate the next highest block number to = the next worker to call this function.
=60=60=60
And from commit 56788d2156, each parallel worker will try to get ranges o= f blocks =E2=80=9Cchunks=22.
Access to the table remains sequential inside each worker=E2=80=99s proce= ss, but not across all workers or the parallel query.
Shall we update the documents=3F

Regards,
Zhang Mingli
--6350ba61_235ba861_1189--