PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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-2017, 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 0x00
22 #define XLOG_DBASE_DROP 0x10
23 
24 typedef struct xl_dbase_create_rec
25 {
26  /* Records copying of a single subdirectory incl. contents */
32 
33 typedef struct xl_dbase_drop_rec
34 {
35  /* Records dropping of a single subdirectory incl. contents */
39 
40 extern void dbase_redo(XLogReaderState *rptr);
41 extern void dbase_desc(StringInfo buf, XLogReaderState *rptr);
42 extern const char *dbase_identify(uint8 info);
43 
44 #endif /* DBCOMMANDS_XLOG_H */
unsigned char uint8
Definition: c.h:263
unsigned int Oid
Definition: postgres_ext.h:31
static char * buf
Definition: pg_test_fsync.c:65
struct xl_dbase_create_rec xl_dbase_create_rec
void dbase_redo(XLogReaderState *rptr)
Definition: dbcommands.c:2069
struct xl_dbase_drop_rec xl_dbase_drop_rec
const char * dbase_identify(uint8 info)
Definition: dbasedesc.c:45
void dbase_desc(StringInfo buf, XLogReaderState *rptr)
Definition: dbasedesc.c:22