Skip to content

Commit 4a20c83

Browse files
committed
Fix outdated bit in README.tuplock
Apparently this information has been outdated since first committed, because we adopted a different implementation during development per reviews and this detail was not updated in the README. This has been wrong since commit 0ac5ad5 introduced the file in 2013. Backpatch to all live branches. Reported-by: Will Mortensen <will@extrahop.com> Discussion: https://postgr.es/m/CAMpnoC6yEQ=c0Rdq-J7uRedrP7Zo9UMp6VZyP23QMT68n06cvA@mail.gmail.com
1 parent 3eb2652 commit 4a20c83

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/backend/access/heap/README.tuplock

+2-7
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ KEY SHARE conflict
7070

7171
When there is a single locker in a tuple, we can just store the locking info
7272
in the tuple itself. We do this by storing the locker's Xid in XMAX, and
73-
setting infomask bits specifying the locking strength. There is one exception
74-
here: since infomask space is limited, we do not provide a separate bit
75-
for SELECT FOR SHARE, so we have to use the extended info in a MultiXact in
76-
that case. (The other cases, SELECT FOR UPDATE and SELECT FOR KEY SHARE, are
77-
presumably more commonly used due to being the standards-mandated locking
78-
mechanism, or heavily used by the RI code, so we want to provide fast paths
79-
for those.)
73+
setting infomask bits specifying the locking strength. See "Infomask Bits"
74+
below for details on the bit patterns we use.
8075

8176
MultiXacts
8277
----------

0 commit comments

Comments
 (0)