|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Functions | |
| void | SubTransSetParent (TransactionId xid, TransactionId parent) |
| TransactionId | SubTransGetParent (TransactionId xid) |
| TransactionId | SubTransGetTopmostTransaction (TransactionId xid) |
| Size | SUBTRANSShmemSize (void) |
| void | SUBTRANSShmemInit (void) |
| void | BootStrapSUBTRANS (void) |
| void | StartupSUBTRANS (TransactionId oldestActiveXID) |
| void | CheckPointSUBTRANS (void) |
| void | ExtendSUBTRANS (TransactionId newestXact) |
| void | TruncateSUBTRANS (TransactionId oldestXact) |
| void BootStrapSUBTRANS | ( | void | ) |
Definition at line 269 of file subtrans.c.
References SimpleLruZeroAndWritePage(), and SubTransCtl.
Referenced by BootStrapXLOG().
| void CheckPointSUBTRANS | ( | void | ) |
Definition at line 329 of file subtrans.c.
References SimpleLruWriteAll(), and SubTransCtl.
Referenced by CheckPointGuts().
| void ExtendSUBTRANS | ( | TransactionId | newestXact | ) |
Definition at line 353 of file subtrans.c.
References FirstNormalTransactionId, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), SimpleLruGetBankLock(), SimpleLruZeroPage(), SubTransCtl, TransactionIdEquals, TransactionIdToEntry, and TransactionIdToPage().
Referenced by GetNewTransactionId(), ProcArrayApplyRecoveryInfo(), and RecordKnownAssignedTransactionIds().
| void StartupSUBTRANS | ( | TransactionId | oldestActiveXID | ) |
Definition at line 283 of file subtrans.c.
References LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MaxTransactionId, TransamVariablesData::nextXid, SimpleLruGetBankLock(), SimpleLruZeroPage(), SubTransCtl, TransactionIdToPage(), TransamVariables, and XidFromFullTransactionId.
Referenced by StartupXLOG().
| TransactionId SubTransGetParent | ( | TransactionId | xid | ) |
Definition at line 121 of file subtrans.c.
References Assert(), InvalidTransactionId, LWLockRelease(), SimpleLruGetBankLock(), SimpleLruReadPage_ReadOnly(), SubTransCtl, TransactionIdFollowsOrEquals(), TransactionIdIsNormal, TransactionIdToEntry, TransactionIdToPage(), and TransactionXmin.
Referenced by SubTransGetTopmostTransaction(), TransactionIdDidAbort(), and TransactionIdDidCommit().
| TransactionId SubTransGetTopmostTransaction | ( | TransactionId | xid | ) |
Definition at line 162 of file subtrans.c.
References Assert(), elog, ERROR, SubTransGetParent(), TransactionIdFollowsOrEquals(), TransactionIdIsValid, TransactionIdPrecedes(), and TransactionXmin.
Referenced by ConditionalXactLockTableWait(), HeapCheckForSerializableConflictOut(), TransactionIdIsInProgress(), XactLockTableWait(), and XidInMVCCSnapshot().
| void SubTransSetParent | ( | TransactionId | xid, |
| TransactionId | parent | ||
| ) |
Definition at line 84 of file subtrans.c.
References Assert(), if(), InvalidTransactionId, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), SimpleLruGetBankLock(), SimpleLruReadPage(), SubTransCtl, TransactionIdFollows(), TransactionIdIsValid, TransactionIdToEntry, and TransactionIdToPage().
Referenced by AssignTransactionId(), ProcArrayApplyXidAssignment(), and ProcessTwoPhaseBuffer().
| void SUBTRANSShmemInit | ( | void | ) |
Definition at line 219 of file subtrans.c.
References Assert(), buf, PGC_POSTMASTER, PGC_S_DYNAMIC_DEFAULT, PGC_S_OVERRIDE, SetConfigOption(), SimpleLruInit(), SlruPagePrecedesUnitTests, snprintf, SUBTRANS_XACTS_PER_PAGE, subtransaction_buffers, SubTransCtl, SubTransPagePrecedes(), SUBTRANSShmemBuffers(), and SYNC_HANDLER_NONE.
Referenced by CreateOrAttachShmemStructs().
| Size SUBTRANSShmemSize | ( | void | ) |
Definition at line 213 of file subtrans.c.
References SimpleLruShmemSize(), and SUBTRANSShmemBuffers().
Referenced by CalculateShmemSize().
| void TruncateSUBTRANS | ( | TransactionId | oldestXact | ) |
Definition at line 385 of file subtrans.c.
References SimpleLruTruncate(), SubTransCtl, TransactionIdRetreat, and TransactionIdToPage().
Referenced by CreateCheckPoint(), and CreateRestartPoint().