PostgreSQL Source Code git master
generic_xlog.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * generic_xlog.h
4 * Generic xlog API definition.
5 *
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/access/generic_xlog.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef GENERIC_XLOG_H
15#define GENERIC_XLOG_H
16
17#include "access/xlog.h"
18#include "access/xlogreader.h"
19#include "access/xloginsert.h"
20#include "storage/bufpage.h"
21#include "utils/rel.h"
22
23#define MAX_GENERIC_XLOG_PAGES XLR_NORMAL_MAX_BLOCK_ID
24
25/* Flag bits for GenericXLogRegisterBuffer */
26#define GENERIC_XLOG_FULL_IMAGE 0x0001 /* write full-page image */
27
28/* state of generic xlog record construction */
29struct GenericXLogState;
31
32/* API for construction of generic xlog records */
35 int flags);
38
39/* functions defined for rmgr */
40extern void generic_redo(XLogReaderState *record);
41extern const char *generic_identify(uint8 info);
42extern void generic_desc(StringInfo buf, XLogReaderState *record);
43extern void generic_mask(char *page, BlockNumber blkno);
44
45#endif /* GENERIC_XLOG_H */
uint32 BlockNumber
Definition: block.h:31
int Buffer
Definition: buf.h:23
Pointer Page
Definition: bufpage.h:81
uint8_t uint8
Definition: c.h:486
Page GenericXLogRegisterBuffer(GenericXLogState *state, Buffer buffer, int flags)
Definition: generic_xlog.c:299
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
GenericXLogState * GenericXLogStart(Relation relation)
Definition: generic_xlog.c:269
XLogRecPtr GenericXLogFinish(GenericXLogState *state)
Definition: generic_xlog.c:337
void generic_desc(StringInfo buf, XLogReaderState *record)
Definition: genericdesc.c:24
void GenericXLogAbort(GenericXLogState *state)
Definition: generic_xlog.c:444
static char * buf
Definition: pg_test_fsync.c:72
Definition: regguts.h:323
uint64 XLogRecPtr
Definition: xlogdefs.h:21