|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/xlog.h"#include "access/xlog_internal.h"#include "access/xloginsert.h"#include "fmgr.h"#include "utils/pg_lsn.h"#include "varatt.h"
Go to the source code of this file.
Data Structures | |
| struct | xl_testcustomrmgrs_message |
Macros | |
| #define | SizeOfTestCustomRmgrsMessage (offsetof(xl_testcustomrmgrs_message, message)) |
| #define | XLOG_TEST_CUSTOM_RMGRS_MESSAGE 0x00 |
| #define | RM_TESTCUSTOMRMGRS_ID RM_EXPERIMENTAL_ID |
| #define | TESTCUSTOMRMGRS_NAME "test_custom_rmgrs" |
Typedefs | |
| typedef struct xl_testcustomrmgrs_message | xl_testcustomrmgrs_message |
Functions | |
| void | testcustomrmgrs_redo (XLogReaderState *record) |
| void | testcustomrmgrs_desc (StringInfo buf, XLogReaderState *record) |
| const char * | testcustomrmgrs_identify (uint8 info) |
| void | _PG_init (void) |
| PG_FUNCTION_INFO_V1 (test_custom_rmgrs_insert_wal_record) | |
| Datum | test_custom_rmgrs_insert_wal_record (PG_FUNCTION_ARGS) |
Variables | |
| PG_MODULE_MAGIC | |
| static const RmgrData | testcustomrmgrs_rmgr |
| #define RM_TESTCUSTOMRMGRS_ID RM_EXPERIMENTAL_ID |
Definition at line 47 of file test_custom_rmgrs.c.
| #define SizeOfTestCustomRmgrsMessage (offsetof(xl_testcustomrmgrs_message, message)) |
Definition at line 38 of file test_custom_rmgrs.c.
| #define TESTCUSTOMRMGRS_NAME "test_custom_rmgrs" |
Definition at line 48 of file test_custom_rmgrs.c.
| #define XLOG_TEST_CUSTOM_RMGRS_MESSAGE 0x00 |
Definition at line 39 of file test_custom_rmgrs.c.
Definition at line 66 of file test_custom_rmgrs.c.
References RegisterCustomRmgr(), RM_TESTCUSTOMRMGRS_ID, and testcustomrmgrs_rmgr.
| PG_FUNCTION_INFO_V1 | ( | test_custom_rmgrs_insert_wal_record | ) |
| Datum test_custom_rmgrs_insert_wal_record | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file test_custom_rmgrs.c.
References arg, fb(), len, xl_testcustomrmgrs_message::message_size, PG_GETARG_TEXT_PP, PG_RETURN_LSN, RM_TESTCUSTOMRMGRS_ID, SizeOfTestCustomRmgrsMessage, VARDATA_ANY(), VARSIZE_ANY_EXHDR(), XLOG_MARK_UNIMPORTANT, XLOG_TEST_CUSTOM_RMGRS_MESSAGE, XLogBeginInsert(), XLogInsert(), XLogRegisterData(), and XLogSetRecordFlags().
| void testcustomrmgrs_desc | ( | StringInfo | buf, |
| XLogReaderState * | record | ||
| ) |
Definition at line 91 of file test_custom_rmgrs.c.
References appendBinaryStringInfo(), appendStringInfo(), buf, fb(), XLOG_TEST_CUSTOM_RMGRS_MESSAGE, XLogRecGetData, and XLogRecGetInfo.
Definition at line 106 of file test_custom_rmgrs.c.
References fb(), XLOG_TEST_CUSTOM_RMGRS_MESSAGE, and XLR_INFO_MASK.
| void testcustomrmgrs_redo | ( | XLogReaderState * | record | ) |
Definition at line 82 of file test_custom_rmgrs.c.
References elog, fb(), PANIC, XLOG_TEST_CUSTOM_RMGRS_MESSAGE, and XLogRecGetInfo.
| PG_MODULE_MAGIC |
Definition at line 27 of file test_custom_rmgrs.c.
Definition at line 55 of file test_custom_rmgrs.c.
Referenced by _PG_init().