PostgreSQL Source Code git master
sequence_xlog.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * sequence_xlog.h
4 * Sequence WAL definitions.
5 *
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * src/include/commands/sequence_xlog.h
10 *
11 *-------------------------------------------------------------------------
12 */
13
14#ifndef SEQUENCE_XLOG_H
15#define SEQUENCE_XLOG_H
16
17#include "access/xlogreader.h"
18#include "lib/stringinfo.h"
19
20/* Record identifier */
21#define XLOG_SEQ_LOG 0x00
22
23/*
24 * The "special area" of a sequence's buffer page looks like this.
25 */
26#define SEQ_MAGIC 0x1717
27
28typedef struct sequence_magic
29{
32
33/* Sequence WAL record */
34typedef struct xl_seq_rec
35{
37 /* SEQUENCE TUPLE DATA FOLLOWS AT THE END */
39
40extern void seq_redo(XLogReaderState *record);
41extern void seq_desc(StringInfo buf, XLogReaderState *record);
42extern const char *seq_identify(uint8 info);
43extern void seq_mask(char *page, BlockNumber blkno);
44
45#endif /* SEQUENCE_XLOG_H */
uint32 BlockNumber
Definition: block.h:31
uint8_t uint8
Definition: c.h:541
uint32_t uint32
Definition: c.h:543
static char * buf
Definition: pg_test_fsync.c:72
struct sequence_magic sequence_magic
void seq_mask(char *page, BlockNumber blkno)
Definition: sequence_xlog.c:75
void seq_desc(StringInfo buf, XLogReaderState *record)
Definition: seqdesc.c:21
struct xl_seq_rec xl_seq_rec
void seq_redo(XLogReaderState *record)
Definition: sequence_xlog.c:23
const char * seq_identify(uint8 info)
Definition: seqdesc.c:34
RelFileLocator locator
Definition: sequence_xlog.h:36