mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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
This commit is contained in:
@ -128,9 +128,11 @@ TidExprListCreate(TidRangeScanState *tidrangestate)
|
|||||||
* TidRangeEval
|
* TidRangeEval
|
||||||
*
|
*
|
||||||
* Compute and set node's block and offset range to scan by evaluating
|
* Compute and set node's block and offset range to scan by evaluating
|
||||||
* the trss_tidexprs. Returns false if we detect the range cannot
|
* node->trss_tidexprs. Returns false if we detect the range cannot
|
||||||
* contain any tuples. Returns true if it's possible for the range to
|
* contain any tuples. Returns true if it's possible for the range to
|
||||||
* contain tuples.
|
* contain tuples. We don't bother validating that trss_mintid is less
|
||||||
|
* than or equal to trss_maxtid, as the scan_set_tidrange() table AM
|
||||||
|
* function will handle that.
|
||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
|
Reference in New Issue
Block a user