We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0161e52 commit 69da8c1Copy full SHA for 69da8c1
src/backend/executor/nodeIndexonlyscan.c
@@ -237,11 +237,8 @@ IndexOnlyNext(IndexOnlyScanState *node)
237
errmsg("lossy distance functions are not supported in index-only scans")));
238
239
/*
240
- * Predicate locks for index-only scans must be acquired at the page
241
- * level when the heap is not accessed, since tuple-level predicate
242
- * locks need the tuple's xmin value. If we had to visit the tuple
243
- * anyway, then we already have the tuple-level lock and can skip the
244
- * page lock.
+ * If we didn't access the heap, then we'll need to take a predicate
+ * lock explicitly, as if we had. For now we do that at page level.
245
*/
246
if (tuple == NULL)
247
PredicateLockPage(scandesc->heapRelation,
0 commit comments