Content-Length: 261478 | pFad | https://github.com/postgrespro/postgres/commit/bdaabb9b22caa71021754d3967b4032b194d9880

22 There's a small window wherein a transaction is committed but not yet · postgrespro/postgres@bdaabb9 · GitHub
Skip to content

Commit bdaabb9

Browse files
committed
There's a small window wherein a transaction is committed but not yet
on the finished list, and we shouldn't flag it as a potential conflict if so. We can also skip adding a doomed transaction to the list of possible conflicts because we know it won't commit. Dan Ports and Kevin Grittner.
1 parent 406d618 commit bdaabb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/storage/lmgr/predicate.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,9 @@ RegisterSerializableTransactionInt(Snapshot snapshot)
16771677
othersxact != NULL;
16781678
othersxact = NextPredXact(othersxact))
16791679
{
1680-
if (!SxactIsOnFinishedList(othersxact) &&
1681-
!SxactIsReadOnly(othersxact))
1680+
if (!SxactIsCommitted(othersxact)
1681+
&& !SxactIsDoomed(othersxact)
1682+
&& !SxactIsReadOnly(othersxact))
16821683
{
16831684
SetPossibleUnsafeConflict(sxact, othersxact);
16841685
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/bdaabb9b22caa71021754d3967b4032b194d9880

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy