mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-24 00:47:19 +02:00
Rephrase a few comments for clarity.
I was confused by what "intended to be parallel serially" meant, until Robert Haas and David G. Johnston explained it. Rephrase the comment to make it more clear, using David's suggested wording. Discussion: https://www.postgresql.org/message-id/1fec9022-41e8-e484-70ce-2179b08c2092%40iki.fi
This commit is contained in:
parent
bc62aef53d
commit
45fcd758a0
@ -84,8 +84,8 @@ IndexOnlyNext(IndexOnlyScanState *node)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We reach here if the index only scan is not parallel, or if we're
|
* We reach here if the index only scan is not parallel, or if we're
|
||||||
* executing a index only scan that was intended to be parallel
|
* serially executing an index only scan that was planned to be
|
||||||
* serially.
|
* parallel.
|
||||||
*/
|
*/
|
||||||
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
||||||
node->ioss_RelationDesc,
|
node->ioss_RelationDesc,
|
||||||
|
@ -108,7 +108,7 @@ IndexNext(IndexScanState *node)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We reach here if the index scan is not parallel, or if we're
|
* We reach here if the index scan is not parallel, or if we're
|
||||||
* executing a index scan that was intended to be parallel serially.
|
* serially executing an index scan that was planned to be parallel.
|
||||||
*/
|
*/
|
||||||
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
||||||
node->iss_RelationDesc,
|
node->iss_RelationDesc,
|
||||||
@ -214,7 +214,7 @@ IndexNextWithReorder(IndexScanState *node)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We reach here if the index scan is not parallel, or if we're
|
* We reach here if the index scan is not parallel, or if we're
|
||||||
* executing a index scan that was intended to be parallel serially.
|
* serially executing an index scan that was planned to be parallel.
|
||||||
*/
|
*/
|
||||||
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
scandesc = index_beginscan(node->ss.ss_currentRelation,
|
||||||
node->iss_RelationDesc,
|
node->iss_RelationDesc,
|
||||||
|
@ -65,8 +65,8 @@ SeqNext(SeqScanState *node)
|
|||||||
if (scandesc == NULL)
|
if (scandesc == NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We reach here if the scan is not parallel, or if we're executing a
|
* We reach here if the scan is not parallel, or if we're serially
|
||||||
* scan that was intended to be parallel serially.
|
* executing a scan that was planned to be parallel.
|
||||||
*/
|
*/
|
||||||
scandesc = heap_beginscan(node->ss.ss_currentRelation,
|
scandesc = heap_beginscan(node->ss.ss_currentRelation,
|
||||||
estate->es_snapshot,
|
estate->es_snapshot,
|
||||||
|
Loading…
Reference in New Issue
Block a user