4 * PostgreSQL transaction-commit-log manager
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/access/clog.h
19 * Possible transaction statuses --- note that all-zeroes is the initial
22 * A "subcommitted" transaction is a committed subtransaction whose parent
23 * hasn't committed or aborted yet.
27 #define TRANSACTION_STATUS_IN_PROGRESS 0x00
28 #define TRANSACTION_STATUS_COMMITTED 0x01
29 #define TRANSACTION_STATUS_ABORTED 0x02
30 #define TRANSACTION_STATUS_SUB_COMMITTED 0x03
55 #define CLOG_ZEROPAGE 0x00
56 #define CLOG_TRUNCATE 0x10
XidStatus TransactionIdGetStatus(TransactionId xid, XLogRecPtr *lsn)
void TransactionIdSetTreeStatus(TransactionId xid, int nsubxids, TransactionId *subxids, XidStatus status, XLogRecPtr lsn)
void ExtendCLOG(TransactionId newestXact)
void clog_redo(XLogReaderState *record)
struct xl_clog_truncate xl_clog_truncate
void TruncateCLOG(TransactionId oldestXact, Oid oldestxid_datoid)
int clogsyncfiletag(const FileTag *ftag, char *path)
void clog_desc(StringInfo buf, XLogReaderState *record)
const char * clog_identify(uint8 info)
void CheckPointCLOG(void)