|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/brin_xlog.h"#include "access/clog.h"#include "access/commit_ts.h"#include "access/generic_xlog.h"#include "access/ginxlog.h"#include "access/gistxlog.h"#include "access/hash_xlog.h"#include "access/heapam_xlog.h"#include "access/multixact.h"#include "access/nbtxlog.h"#include "access/rmgr.h"#include "access/spgxlog.h"#include "access/xact.h"#include "access/xlog_internal.h"#include "catalog/storage_xlog.h"#include "commands/dbcommands_xlog.h"#include "commands/sequence.h"#include "commands/tablespace.h"#include "replication/message.h"#include "replication/origin.h"#include "rmgrdesc.h"#include "storage/standbydefs.h"#include "utils/relmapper.h"#include "access/rmgrlist.h"
Go to the source code of this file.
Macros | |
| #define | FRONTEND 1 |
| #define | PG_RMGR(symname, name, redo, desc, identify, startup, cleanup, mask, decode) { name, desc, identify}, |
| #define | CUSTOM_NUMERIC_NAME_LEN sizeof("custom###") |
Functions | |
| static void | default_desc (StringInfo buf, XLogReaderState *record) |
| static const char * | default_identify (uint8 info) |
| static void | initialize_custom_rmgrs (void) |
| const RmgrDescData * | GetRmgrDesc (RmgrId rmid) |
Variables | |
| static const RmgrDescData | RmgrDescTable [RM_N_BUILTIN_IDS] |
| static char | CustomNumericNames [RM_N_CUSTOM_IDS][CUSTOM_NUMERIC_NAME_LEN] = {0} |
| static RmgrDescData | CustomRmgrDesc [RM_N_CUSTOM_IDS] = {0} |
| static bool | CustomRmgrDescInitialized = false |
| #define CUSTOM_NUMERIC_NAME_LEN sizeof("custom###") |
Definition at line 42 of file rmgrdesc.c.
| #define FRONTEND 1 |
Definition at line 8 of file rmgrdesc.c.
| #define PG_RMGR | ( | symname, | |
| name, | |||
| redo, | |||
| desc, | |||
| identify, | |||
| startup, | |||
| cleanup, | |||
| mask, | |||
| decode | |||
| ) | { name, desc, identify}, |
Definition at line 35 of file rmgrdesc.c.
|
static |
Definition at line 52 of file rmgrdesc.c.
References appendStringInfo(), buf, and XLogRecGetRmid.
Referenced by initialize_custom_rmgrs().
|
static |
Definition at line 62 of file rmgrdesc.c.
Referenced by initialize_custom_rmgrs().
| const RmgrDescData * GetRmgrDesc | ( | RmgrId | rmid | ) |
Definition at line 87 of file rmgrdesc.c.
References Assert(), CustomRmgrDesc, CustomRmgrDescInitialized, initialize_custom_rmgrs(), RM_MIN_CUSTOM_ID, RmgrDescTable, RmgrIdIsBuiltin(), and RmgrIdIsValid.
Referenced by main(), print_rmgr_list(), XLogDumpDisplayRecord(), and XLogDumpDisplayStats().
|
static |
Definition at line 73 of file rmgrdesc.c.
References CUSTOM_NUMERIC_NAME_LEN, CustomNumericNames, CustomRmgrDesc, CustomRmgrDescInitialized, default_desc(), default_identify(), i, RmgrDescData::rm_desc, RmgrDescData::rm_identify, RM_MIN_CUSTOM_ID, RM_N_CUSTOM_IDS, RmgrDescData::rm_name, and snprintf.
Referenced by GetRmgrDesc().
|
static |
Definition at line 44 of file rmgrdesc.c.
Referenced by initialize_custom_rmgrs().
|
static |
Definition at line 45 of file rmgrdesc.c.
Referenced by GetRmgrDesc(), and initialize_custom_rmgrs().
|
static |
Definition at line 46 of file rmgrdesc.c.
Referenced by GetRmgrDesc(), and initialize_custom_rmgrs().
|
static |