Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69da8c1

Browse files
committed
Fix misleading comment in nodeIndexonlyscan.c.
The stated reason for acquiring predicate locks on heap pages hasn'texisted since commitc01262a, so fix the comment. Perhaps in a laterrelease we'll also be able to change the code to use tuple locks.Back-patch all the way.Reviewed-by: Ashwin AgrawalDiscussion:https://postgr.es/m/CAEepm%3D2GK3FVdnt5V3d%2Bh9njWipCv_fNL%3DwjxyUhzsF%3D0PcbNg%40mail.gmail.com
1 parent0161e52 commit69da8c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/backend/executor/nodeIndexonlyscan.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,8 @@ IndexOnlyNext(IndexOnlyScanState *node)
237237
errmsg("lossy distance functions are not supported in index-only scans")));
238238

239239
/*
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.
240+
* If we didn't access the heap, then we'll need to take a predicate
241+
* lock explicitly, as if we had. For now we do that at page level.
245242
*/
246243
if (tuple==NULL)
247244
PredicateLockPage(scandesc->heapRelation,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp