Skip to content

Commit 2f98f96

Browse files
committed
Improve comments for TidRangeEval
Here we provide a bit more detail on why TidRangeEval() does return false when trss_mintid is greater than trss_maxtid. Reported-by: Junwang Zhao <zhjwpku@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Reviewed-by: Junwang Zhao <zhjwpku@gmail.com> Discussion: https://postgr.es/m/CAEG8a3KUbUUqQgfK5X8Sj-%2BppPtGNTU%2BZiep0Rxr7SLjoR%2BB6w%40mail.gmail.com
1 parent 0fe5041 commit 2f98f96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/executor/nodeTidrangescan.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ TidExprListCreate(TidRangeScanState *tidrangestate)
128128
* TidRangeEval
129129
*
130130
* Compute and set node's block and offset range to scan by evaluating
131-
* the trss_tidexprs. Returns false if we detect the range cannot
131+
* node->trss_tidexprs. Returns false if we detect the range cannot
132132
* contain any tuples. Returns true if it's possible for the range to
133-
* contain tuples.
133+
* contain tuples. We don't bother validating that trss_mintid is less
134+
* than or equal to trss_maxtid, as the scan_set_tidrange() table AM
135+
* function will handle that.
134136
* ----------------------------------------------------------------
135137
*/
136138
static bool

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy