We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69fd82f commit 74b7cc8Copy full SHA for 74b7cc8
src/backend/executor/nodeIndexonlyscan.c
@@ -242,11 +242,8 @@ IndexOnlyNext(IndexOnlyScanState *node)
242
errmsg("lossy distance functions are not supported in index-only scans")));
243
244
/*
245
- * Predicate locks for index-only scans must be acquired at the page
246
- * level when the heap is not accessed, since tuple-level predicate
247
- * locks need the tuple's xmin value. If we had to visit the tuple
248
- * anyway, then we already have the tuple-level lock and can skip the
249
- * 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.
250
*/
251
if (!tuple_from_heap)
252
PredicateLockPage(scandesc->heapRelation,
0 commit comments