aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2018-07-19 16:08:09 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2018-07-19 16:08:09 +0300
commit99fdebaf2da9160ec49a80854dc99e46722a9a03 (patch)
tree42512e5f581748561818c98b95da6959d444882c /src
parent405cb356d6104eccf34acc2e4944d711b0961c7d (diff)
downloadpostgresql-99fdebaf2da9160ec49a80854dc99e46722a9a03.tar.gz
postgresql-99fdebaf2da9160ec49a80854dc99e46722a9a03.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/executor/nodeIndexonlyscan.c4
-rw-r--r--src/backend/executor/nodeIndexscan.c4
-rw-r--r--src/backend/executor/nodeSeqscan.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/executor/nodeIndexonlyscan.c b/src/backend/executor/nodeIndexonlyscan.c
index 3a02a996214..8c32a74d39e 100644
--- a/src/backend/executor/nodeIndexonlyscan.c
+++ b/src/backend/executor/nodeIndexonlyscan.c
@@ -84,8 +84,8 @@ IndexOnlyNext(IndexOnlyScanState *node)
{
/*
* 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.
+ * serially executing an index only scan that was planned to be
+ * parallel.
*/
scandesc = index_beginscan(node->ss.ss_currentRelation,
node->ioss_RelationDesc,
diff --git a/src/backend/executor/nodeIndexscan.c b/src/backend/executor/nodeIndexscan.c
index d6012192a14..10891bc3f46 100644
--- a/src/backend/executor/nodeIndexscan.c
+++ b/src/backend/executor/nodeIndexscan.c
@@ -108,7 +108,7 @@ IndexNext(IndexScanState *node)
{
/*
* 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,
node->iss_RelationDesc,
@@ -214,7 +214,7 @@ IndexNextWithReorder(IndexScanState *node)
{
/*
* 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,
node->iss_RelationDesc,
diff --git a/src/backend/executor/nodeSeqscan.c b/src/backend/executor/nodeSeqscan.c
index 9db368922a3..c7849de6bca 100644
--- a/src/backend/executor/nodeSeqscan.c
+++ b/src/backend/executor/nodeSeqscan.c
@@ -65,8 +65,8 @@ SeqNext(SeqScanState *node)
if (scandesc == NULL)
{
/*
- * We reach here if the scan is not parallel, or if we're executing a
- * scan that was intended to be parallel serially.
+ * We reach here if the scan is not parallel, or if we're serially
+ * executing a scan that was planned to be parallel.
*/
scandesc = heap_beginscan(node->ss.ss_currentRelation,
estate->es_snapshot,