|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| struct | xl_clog_truncate |
Macros | |
| #define | TRANSACTION_STATUS_IN_PROGRESS 0x00 |
| #define | TRANSACTION_STATUS_COMMITTED 0x01 |
| #define | TRANSACTION_STATUS_ABORTED 0x02 |
| #define | TRANSACTION_STATUS_SUB_COMMITTED 0x03 |
| #define | CLOG_ZEROPAGE 0x00 |
| #define | CLOG_TRUNCATE 0x10 |
Typedefs | |
| typedef int | XidStatus |
| typedef struct xl_clog_truncate | xl_clog_truncate |
Functions | |
| void | TransactionIdSetTreeStatus (TransactionId xid, int nsubxids, TransactionId *subxids, XidStatus status, XLogRecPtr lsn) |
| XidStatus | TransactionIdGetStatus (TransactionId xid, XLogRecPtr *lsn) |
| Size | CLOGShmemSize (void) |
| void | CLOGShmemInit (void) |
| void | BootStrapCLOG (void) |
| void | StartupCLOG (void) |
| void | TrimCLOG (void) |
| void | CheckPointCLOG (void) |
| void | ExtendCLOG (TransactionId newestXact) |
| void | TruncateCLOG (TransactionId oldestXact, Oid oldestxid_datoid) |
| int | clogsyncfiletag (const FileTag *ftag, char *path) |
| void | clog_redo (XLogReaderState *record) |
| void | clog_desc (StringInfo buf, XLogReaderState *record) |
| const char * | clog_identify (uint8 info) |
Definition at line 832 of file clog.c.
References SimpleLruZeroAndWritePage(), and XactCtl.
Referenced by BootStrapXLOG().
Definition at line 903 of file clog.c.
References fb(), SimpleLruWriteAll(), and XactCtl.
Referenced by CheckPointGuts().
|
extern |
Definition at line 21 of file clogdesc.c.
References appendStringInfo(), buf, CLOG_TRUNCATE, CLOG_ZEROPAGE, fb(), XLogRecGetData, and XLogRecGetInfo.
Definition at line 44 of file clogdesc.c.
References CLOG_TRUNCATE, CLOG_ZEROPAGE, fb(), and XLR_INFO_MASK.
|
extern |
Definition at line 1063 of file clog.c.
References AdvanceOldestClogXid(), Assert, CLOG_TRUNCATE, CLOG_ZEROPAGE, elog, fb(), PANIC, SimpleLruTruncate(), SimpleLruZeroAndWritePage(), XactCtl, XLogRecGetData, XLogRecGetInfo, and XLogRecHasAnyBlockRefs.
Definition at line 786 of file clog.c.
References Assert, buf, CLOG_LSNS_PER_PAGE, CLOG_XACTS_PER_PAGE, CLOGPagePrecedes(), CLOGShmemBuffers(), fb(), PGC_POSTMASTER, PGC_S_DYNAMIC_DEFAULT, PGC_S_OVERRIDE, SetConfigOption(), SimpleLruInit(), SlruPagePrecedesUnitTests, snprintf, SYNC_HANDLER_CLOG, transaction_buffers, and XactCtl.
Referenced by CreateOrAttachShmemStructs().
Definition at line 780 of file clog.c.
References CLOG_LSNS_PER_PAGE, CLOGShmemBuffers(), and SimpleLruShmemSize().
Referenced by CalculateShmemSize().
Definition at line 1095 of file clog.c.
References SlruSyncFileTag(), and XactCtl.
|
extern |
Definition at line 925 of file clog.c.
References CLOG_ZEROPAGE, fb(), FirstNormalTransactionId, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), SimpleLruGetBankLock(), SimpleLruZeroPage(), TransactionIdEquals, TransactionIdToPage(), TransactionIdToPgIndex, XactCtl, and XLogSimpleInsertInt64().
Referenced by GetNewTransactionId().
Definition at line 843 of file clog.c.
References TransamVariablesData::nextXid, pg_atomic_write_u64(), TransactionIdToPage(), TransamVariables, XactCtl, and XidFromFullTransactionId.
Referenced by StartupXLOG().
|
extern |
Definition at line 734 of file clog.c.
References CLOG_BITS_PER_XACT, CLOG_XACT_BITMASK, fb(), GetLSNIndex, LWLockRelease(), SimpleLruGetBankLock(), SimpleLruReadPage_ReadOnly(), TransactionIdToBIndex, TransactionIdToByte, TransactionIdToPage(), and XactCtl.
Referenced by TransactionIdGetCommitLSN(), and TransactionLogFetch().
|
extern |
Definition at line 181 of file clog.c.
References Assert, fb(), i, set_status_by_pages(), TRANSACTION_STATUS_ABORTED, TRANSACTION_STATUS_COMMITTED, TRANSACTION_STATUS_SUB_COMMITTED, TransactionIdSetPageStatus(), and TransactionIdToPage().
Referenced by TransactionIdAbortTree(), TransactionIdAsyncCommitTree(), and TransactionIdCommitTree().
Definition at line 858 of file clog.c.
References CLOG_BITS_PER_XACT, fb(), LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MemSet, TransamVariablesData::nextXid, SimpleLruGetBankLock(), SimpleLruReadPage(), TransactionIdToBIndex, TransactionIdToByte, TransactionIdToPage(), TransactionIdToPgIndex, TransamVariables, XactCtl, and XidFromFullTransactionId.
Referenced by StartupXLOG().
|
extern |
Definition at line 967 of file clog.c.
References AdvanceOldestClogXid(), fb(), SimpleLruTruncate(), SlruScanDirCbReportPresence(), SlruScanDirectory(), TransactionIdToPage(), WriteTruncateXlogRec(), and XactCtl.
Referenced by vac_truncate_clog().