diff options
author | Thomas Munro <tmunro@postgresql.org> | 2019-06-28 11:11:26 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2019-06-28 17:22:39 +1200 |
commit | 706cb9bf4f43eb2b9e8ad8fd6e0d4190575fe069 (patch) | |
tree | f151a68dd926e82df56e6af895f35ee2506d1712 /src/backend/executor/nodeIndexonlyscan.c | |
parent | e46cd427880eb064e28ab5bfa3123ba820eeccd2 (diff) |
Fix misleading comment in nodeIndexonlyscan.c.
The stated reason for acquiring predicate locks on heap pages hasn't
existed since commit c01262a8, so fix the comment. Perhaps in a later
release we'll also be able to change the code to use tuple locks.
Back-patch all the way.
Reviewed-by: Ashwin Agrawal
Discussion: https://postgr.es/m/CAEepm%3D2GK3FVdnt5V3d%2Bh9njWipCv_fNL%3DwjxyUhzsF%3D0PcbNg%40mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeIndexonlyscan.c')
-rw-r--r-- | src/backend/executor/nodeIndexonlyscan.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/executor/nodeIndexonlyscan.c b/src/backend/executor/nodeIndexonlyscan.c index afcd1ff353e..d6049625e9b 100644 --- a/src/backend/executor/nodeIndexonlyscan.c +++ b/src/backend/executor/nodeIndexonlyscan.c @@ -166,11 +166,8 @@ IndexOnlyNext(IndexOnlyScanState *node) } /* - * Predicate locks for index-only scans must be acquired at the page - * level when the heap is not accessed, since tuple-level predicate - * locks need the tuple's xmin value. If we had to visit the tuple - * anyway, then we already have the tuple-level lock and can skip the - * 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. */ if (tuple == NULL) PredicateLockPage(scandesc->heapRelation, |