PostgreSQL Source Code
git master
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-2018, 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 */
27
Oid
db_id
;
28
Oid
tablespace_id
;
29
Oid
src_db_id
;
30
Oid
src_tablespace_id
;
31
}
xl_dbase_create_rec
;
32
33
typedef
struct
xl_dbase_drop_rec
34
{
35
/* Records dropping of a single subdirectory incl. contents */
36
Oid
db_id
;
37
Oid
tablespace_id
;
38
}
xl_dbase_drop_rec
;
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 */
stringinfo.h
uint8
unsigned char uint8
Definition:
c.h:323
xl_dbase_drop_rec::db_id
Oid db_id
Definition:
dbcommands_xlog.h:36
Oid
unsigned int Oid
Definition:
postgres_ext.h:31
buf
static char * buf
Definition:
pg_test_fsync.c:67
xl_dbase_create_rec::tablespace_id
Oid tablespace_id
Definition:
dbcommands_xlog.h:28
xl_dbase_create_rec
Definition:
dbcommands_xlog.h:24
xl_dbase_create_rec
struct xl_dbase_create_rec xl_dbase_create_rec
xl_dbase_drop_rec
Definition:
dbcommands_xlog.h:33
xl_dbase_drop_rec::tablespace_id
Oid tablespace_id
Definition:
dbcommands_xlog.h:37
dbase_redo
void dbase_redo(XLogReaderState *rptr)
Definition:
dbcommands.c:2077
xl_dbase_create_rec::src_tablespace_id
Oid src_tablespace_id
Definition:
dbcommands_xlog.h:30
xl_dbase_drop_rec
struct xl_dbase_drop_rec xl_dbase_drop_rec
dbase_identify
const char * dbase_identify(uint8 info)
Definition:
dbasedesc.c:45
dbase_desc
void dbase_desc(StringInfo buf, XLogReaderState *rptr)
Definition:
dbasedesc.c:22
xl_dbase_create_rec::src_db_id
Oid src_db_id
Definition:
dbcommands_xlog.h:29
xlogreader.h
XLogReaderState
Definition:
xlogreader.h:69
xl_dbase_create_rec::db_id
Oid db_id
Definition:
dbcommands_xlog.h:27
StringInfoData
Definition:
stringinfo.h:35
src
include
commands
dbcommands_xlog.h
Generated on Sat Apr 21 2018 06:13:23 for PostgreSQL Source Code by
1.8.13