PostgreSQL Source Code  git master
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------
2  * rmgrlist.h
3  *
4  * The resource manager list is kept in its own source file for possible
5  * use by automatic tools. The exact representation of a rmgr is determined
6  * by the PG_RMGR macro, which is not defined in this file; it can be
7  * defined by the caller for special purposes.
8  *
9  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
10  * Portions Copyright (c) 1994, Regents of the University of California
11  *
12  * src/include/access/rmgrlist.h
13  *---------------------------------------------------------------------------
14  */
16 /* there is deliberately not an #ifndef RMGRLIST_H here */
18 /*
19  * List of resource manager entries. Note that order of entries defines the
20  * numerical values of each rmgr's ID, which is stored in WAL records. New
21  * entries should be added at the end, to avoid changing IDs of existing
22  * entries.
23  *
24  * Changes to this list possibly need an XLOG_PAGE_MAGIC bump.
25  */
27 /* symbol name, textual name, redo, desc, identify, startup, cleanup, mask, decode */
28 PG_RMGR(RM_XLOG_ID, "XLOG", xlog_redo, xlog_desc, xlog_identify, NULL, NULL, NULL, xlog_decode)
29 PG_RMGR(RM_XACT_ID, "Transaction", xact_redo, xact_desc, xact_identify, NULL, NULL, NULL, xact_decode)
30 PG_RMGR(RM_SMGR_ID, "Storage", smgr_redo, smgr_desc, smgr_identify, NULL, NULL, NULL, NULL)
31 PG_RMGR(RM_CLOG_ID, "CLOG", clog_redo, clog_desc, clog_identify, NULL, NULL, NULL, NULL)
32 PG_RMGR(RM_DBASE_ID, "Database", dbase_redo, dbase_desc, dbase_identify, NULL, NULL, NULL, NULL)
33 PG_RMGR(RM_TBLSPC_ID, "Tablespace", tblspc_redo, tblspc_desc, tblspc_identify, NULL, NULL, NULL, NULL)
34 PG_RMGR(RM_MULTIXACT_ID, "MultiXact", multixact_redo, multixact_desc, multixact_identify, NULL, NULL, NULL, NULL)
35 PG_RMGR(RM_RELMAP_ID, "RelMap", relmap_redo, relmap_desc, relmap_identify, NULL, NULL, NULL, NULL)
36 PG_RMGR(RM_STANDBY_ID, "Standby", standby_redo, standby_desc, standby_identify, NULL, NULL, NULL, standby_decode)
37 PG_RMGR(RM_HEAP2_ID, "Heap2", heap2_redo, heap2_desc, heap2_identify, NULL, NULL, heap_mask, heap2_decode)
38 PG_RMGR(RM_HEAP_ID, "Heap", heap_redo, heap_desc, heap_identify, NULL, NULL, heap_mask, heap_decode)
40 PG_RMGR(RM_HASH_ID, "Hash", hash_redo, hash_desc, hash_identify, NULL, NULL, hash_mask, NULL)
43 PG_RMGR(RM_SEQ_ID, "Sequence", seq_redo, seq_desc, seq_identify, NULL, NULL, seq_mask, NULL)
45 PG_RMGR(RM_BRIN_ID, "BRIN", brin_redo, brin_desc, brin_identify, NULL, NULL, brin_mask, NULL)
46 PG_RMGR(RM_COMMIT_TS_ID, "CommitTs", commit_ts_redo, commit_ts_desc, commit_ts_identify, NULL, NULL, NULL, NULL)
47 PG_RMGR(RM_REPLORIGIN_ID, "ReplicationOrigin", replorigin_redo, replorigin_desc, replorigin_identify, NULL, NULL, NULL, NULL)
48 PG_RMGR(RM_GENERIC_ID, "Generic", generic_redo, generic_desc, generic_identify, NULL, NULL, generic_mask, NULL)
49 PG_RMGR(RM_LOGICALMSG_ID, "LogicalMessage", logicalmsg_redo, logicalmsg_desc, logicalmsg_identify, NULL, NULL, NULL, logicalmsg_decode)
void tblspc_redo(XLogReaderState *record)
Definition: tablespace.c:1511
void brin_redo(XLogReaderState *record)
Definition: brin_xlog.c:309
void brin_mask(char *pagedata, BlockNumber blkno)
Definition: brin_xlog.c:342
void brin_desc(StringInfo buf, XLogReaderState *record)
Definition: brindesc.c:20
const char * brin_identify(uint8 info)
Definition: brindesc.c:74
void clog_redo(XLogReaderState *record)
Definition: clog.c:1107
const char * clog_identify(uint8 info)
Definition: clogdesc.c:44
void clog_desc(StringInfo buf, XLogReaderState *record)
Definition: clogdesc.c:21
void seq_mask(char *page, BlockNumber blkno)
Definition: sequence.c:1892
void seq_redo(XLogReaderState *record)
Definition: sequence.c:1824
void commit_ts_redo(XLogReaderState *record)
Definition: commit_ts.c:1016
const char * commit_ts_identify(uint8 info)
Definition: committsdesc.c:43
void commit_ts_desc(StringInfo buf, XLogReaderState *record)
Definition: committsdesc.c:21
const char * dbase_identify(uint8 info)
Definition: dbasedesc.c:57
void dbase_desc(StringInfo buf, XLogReaderState *record)
Definition: dbasedesc.c:22
void dbase_redo(XLogReaderState *record)
Definition: dbcommands.c:3250
void heap2_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:404
void heap_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:463
void xlog_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:129
void xact_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:201
void standby_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:358
void logicalmsg_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
Definition: decode.c:585
void generic_redo(XLogReaderState *record)
Definition: generic_xlog.c:478
void generic_mask(char *page, BlockNumber blkno)
Definition: generic_xlog.c:539
const char * generic_identify(uint8 info)
Definition: genericdesc.c:52
void generic_desc(StringInfo buf, XLogReaderState *record)
Definition: genericdesc.c:24
void gin_desc(StringInfo buf, XLogReaderState *record)
Definition: gindesc.c:72
const char * gin_identify(uint8 info)
Definition: gindesc.c:180
void gin_redo(XLogReaderState *record)
Definition: ginxlog.c:726
void gin_mask(char *pagedata, BlockNumber blkno)
Definition: ginxlog.c:793
void gin_xlog_startup(void)
Definition: ginxlog.c:775
void gin_xlog_cleanup(void)
Definition: ginxlog.c:783
const char * gist_identify(uint8 info)
Definition: gistdesc.c:90
void gist_desc(StringInfo buf, XLogReaderState *record)
Definition: gistdesc.c:61
void gist_xlog_startup(void)
Definition: gistxlog.c:438
void gist_redo(XLogReaderState *record)
Definition: gistxlog.c:397
void gist_xlog_cleanup(void)
Definition: gistxlog.c:444
void gist_mask(char *pagedata, BlockNumber blkno)
Definition: gistxlog.c:453
void hash_mask(char *pagedata, BlockNumber blkno)
Definition: hash_xlog.c:1121
void hash_redo(XLogReaderState *record)
Definition: hash_xlog.c:1067
const char * hash_identify(uint8 info)
Definition: hashdesc.c:126
void hash_desc(StringInfo buf, XLogReaderState *record)
Definition: hashdesc.c:20
void heap_redo(XLogReaderState *record)
Definition: heapam.c:9878
void heap_mask(char *pagedata, BlockNumber blkno)
Definition: heapam.c:9963
void heap2_redo(XLogReaderState *record)
Definition: heapam.c:9924
void heap_desc(StringInfo buf, XLogReaderState *record)
Definition: heapdesc.c:183
const char * heap_identify(uint8 info)
Definition: heapdesc.c:385
void heap2_desc(StringInfo buf, XLogReaderState *record)
Definition: heapdesc.c:260
const char * heap2_identify(uint8 info)
Definition: heapdesc.c:430
void logicalmsg_desc(StringInfo buf, XLogReaderState *record)
const char * logicalmsg_identify(uint8 info)
void logicalmsg_redo(XLogReaderState *record)
Definition: message.c:87
void multixact_redo(XLogReaderState *record)
Definition: multixact.c:3337
const char * multixact_identify(uint8 info)
Definition: mxactdesc.c:84
void multixact_desc(StringInfo buf, XLogReaderState *record)
Definition: mxactdesc.c:50
const char * btree_identify(uint8 info)
Definition: nbtdesc.c:139
void btree_desc(StringInfo buf, XLogReaderState *record)
Definition: nbtdesc.c:24
void btree_redo(XLogReaderState *record)
Definition: nbtxlog.c:1014
void btree_xlog_cleanup(void)
Definition: nbtxlog.c:1081
void btree_mask(char *pagedata, BlockNumber blkno)
Definition: nbtxlog.c:1091
void btree_xlog_startup(void)
Definition: nbtxlog.c:1073
void replorigin_redo(XLogReaderState *record)
Definition: origin.c:827
void relmap_desc(StringInfo buf, XLogReaderState *record)
Definition: relmapdesc.c:20
const char * relmap_identify(uint8 info)
Definition: relmapdesc.c:35
void relmap_redo(XLogReaderState *record)
Definition: relmapper.c:1096
void replorigin_desc(StringInfo buf, XLogReaderState *record)
const char * replorigin_identify(uint8 info)
#define PG_RMGR(symname, name, redo, desc, identify, startup, cleanup, mask, decode)
Definition: rmgr.c:47
const char * seq_identify(uint8 info)
Definition: seqdesc.c:34
void seq_desc(StringInfo buf, XLogReaderState *record)
Definition: seqdesc.c:21
void smgr_desc(StringInfo buf, XLogReaderState *record)
Definition: smgrdesc.c:21
const char * smgr_identify(uint8 info)
Definition: smgrdesc.c:46
void spg_desc(StringInfo buf, XLogReaderState *record)
Definition: spgdesc.c:20
const char * spg_identify(uint8 info)
Definition: spgdesc.c:132
void spg_redo(XLogReaderState *record)
Definition: spgxlog.c:935
void spg_xlog_cleanup(void)
Definition: spgxlog.c:984
void spg_mask(char *pagedata, BlockNumber blkno)
Definition: spgxlog.c:994
void spg_xlog_startup(void)
Definition: spgxlog.c:976
void standby_redo(XLogReaderState *record)
Definition: standby.c:1159
void standby_desc(StringInfo buf, XLogReaderState *record)
Definition: standbydesc.c:47
const char * standby_identify(uint8 info)
Definition: standbydesc.c:79
void smgr_redo(XLogReaderState *record)
Definition: storage.c:940
void tblspc_desc(StringInfo buf, XLogReaderState *record)
Definition: tblspcdesc.c:21
const char * tblspc_identify(uint8 info)
Definition: tblspcdesc.c:41
void xact_redo(XLogReaderState *record)
Definition: xact.c:6314
const char * xact_identify(uint8 info)
Definition: xactdesc.c:484
void xact_desc(StringInfo buf, XLogReaderState *record)
Definition: xactdesc.c:436
void xlog_redo(XLogReaderState *record)
Definition: xlog.c:8156
void xlog_desc(StringInfo buf, XLogReaderState *record)
Definition: xlogdesc.c:37
const char * xlog_identify(uint8 info)
Definition: xlogdesc.c:158