1/*-------------------------------------------------------------------------
4 * prototypes for XLog support for backend/catalog/storage.c
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/catalog/storage_xlog.h
12 *-------------------------------------------------------------------------
23 * Declarations for smgr-related XLOG records
25 * Note: we log file creation and truncation here, but logging of deletion
26 * actions is handled by xact.c, because it is part of transaction commit.
29/* XLOG gives us high 4 bits */
30 #define XLOG_SMGR_CREATE 0x10
31 #define XLOG_SMGR_TRUNCATE 0x20
39/* flags for xl_smgr_truncate */
40 #define SMGR_TRUNCATE_HEAP 0x0001
41 #define SMGR_TRUNCATE_VM 0x0002
42 #define SMGR_TRUNCATE_FSM 0x0004
43 #define SMGR_TRUNCATE_ALL \
44 (SMGR_TRUNCATE_HEAP|SMGR_TRUNCATE_VM|SMGR_TRUNCATE_FSM)
59#endif /* STORAGE_XLOG_H */
const char * smgr_identify(uint8 info)
struct xl_smgr_create xl_smgr_create
void smgr_desc(StringInfo buf, XLogReaderState *record)
void smgr_redo(XLogReaderState *record)
struct xl_smgr_truncate xl_smgr_truncate
void log_smgrcreate(const RelFileLocator *rlocator, ForkNumber forkNum)