PostgreSQL Source Code git master
Loading...
Searching...
No Matches
dbcommands_xlog.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * dbcommands_xlog.h
4 * Database resource manager XLOG definitions (create/drop database).
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/commands/dbcommands_xlog.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef DBCOMMANDS_XLOG_H
15#define DBCOMMANDS_XLOG_H
16
17#include "access/xlogreader.h"
18#include "lib/stringinfo.h"
19
20/* record types */
21#define XLOG_DBASE_CREATE_FILE_COPY 0x00
22#define XLOG_DBASE_CREATE_WAL_LOG 0x10
23#define XLOG_DBASE_DROP 0x20
24
25/*
26 * Single WAL record for an entire CREATE DATABASE operation. This is used
27 * by the FILE_COPY strategy.
28 */
36
37/*
38 * WAL record for the beginning of a CREATE DATABASE operation, when the
39 * WAL_LOG strategy is used. Each individual block will be logged separately
40 * afterward.
41 */
47
54#define MinSizeOfDbaseDropRec offsetof(xl_dbase_drop_rec, tablespace_ids)
55
56extern void dbase_redo(XLogReaderState *record);
57extern void dbase_desc(StringInfo buf, XLogReaderState *record);
58extern const char *dbase_identify(uint8 info);
59
60#endif /* DBCOMMANDS_XLOG_H */
uint8_t uint8
Definition c.h:544
#define FLEXIBLE_ARRAY_MEMBER
Definition c.h:480
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)
static char buf[DEFAULT_XLOG_SEG_SIZE]
unsigned int Oid
Oid tablespace_ids[FLEXIBLE_ARRAY_MEMBER]