PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | xl_dbase_create_rec |
struct | xl_dbase_drop_rec |
Macros | |
#define | XLOG_DBASE_CREATE 0x00 |
#define | XLOG_DBASE_DROP 0x10 |
#define | MinSizeOfDbaseDropRec offsetof(xl_dbase_drop_rec, tablespace_ids) |
Typedefs | |
typedef struct xl_dbase_create_rec | xl_dbase_create_rec |
typedef struct xl_dbase_drop_rec | xl_dbase_drop_rec |
Functions | |
void | dbase_redo (XLogReaderState *rptr) |
void | dbase_desc (StringInfo buf, XLogReaderState *rptr) |
const char * | dbase_identify (uint8 info) |
#define MinSizeOfDbaseDropRec offsetof(xl_dbase_drop_rec, tablespace_ids) |
Definition at line 39 of file dbcommands_xlog.h.
Referenced by remove_dbtablespaces().
#define XLOG_DBASE_CREATE 0x00 |
Definition at line 21 of file dbcommands_xlog.h.
Referenced by createdb(), dbase_desc(), dbase_identify(), dbase_redo(), extractPageInfo(), and movedb().
#define XLOG_DBASE_DROP 0x10 |
Definition at line 22 of file dbcommands_xlog.h.
Referenced by dbase_desc(), dbase_identify(), dbase_redo(), extractPageInfo(), movedb(), and remove_dbtablespaces().
typedef struct xl_dbase_create_rec xl_dbase_create_rec |
typedef struct xl_dbase_drop_rec xl_dbase_drop_rec |
void dbase_desc | ( | StringInfo | buf, |
XLogReaderState * | rptr | ||
) |
Definition at line 22 of file dbasedesc.c.
References appendStringInfo(), appendStringInfoString(), xl_dbase_create_rec::db_id, xl_dbase_drop_rec::db_id, i, xl_dbase_drop_rec::ntablespaces, xl_dbase_create_rec::src_db_id, xl_dbase_create_rec::src_tablespace_id, xl_dbase_create_rec::tablespace_id, xl_dbase_drop_rec::tablespace_ids, XLOG_DBASE_CREATE, XLOG_DBASE_DROP, XLogRecGetData, XLogRecGetInfo, and XLR_INFO_MASK.
const char* dbase_identify | ( | uint8 | info | ) |
Definition at line 48 of file dbasedesc.c.
References XLOG_DBASE_CREATE, XLOG_DBASE_DROP, and XLR_INFO_MASK.
void dbase_redo | ( | XLogReaderState * | rptr | ) |
Definition at line 2176 of file dbcommands.c.
References AccessExclusiveLock, Assert, copydir(), xl_dbase_create_rec::db_id, xl_dbase_drop_rec::db_id, DropDatabaseBuffers(), elog, ereport, errmsg(), FlushDatabaseBuffers(), ForgetDatabaseSyncRequests(), GetDatabasePath(), i, InHotStandby, LockSharedObjectForSession(), xl_dbase_drop_rec::ntablespaces, PANIC, pfree(), ReplicationSlotsDropDBSlots(), ResolveRecoveryConflictWithDatabase(), rmtree(), S_ISDIR, xl_dbase_create_rec::src_db_id, xl_dbase_create_rec::src_tablespace_id, stat::st_mode, stat, xl_dbase_create_rec::tablespace_id, xl_dbase_drop_rec::tablespace_ids, UnlockSharedObjectForSession(), WARNING, XLOG_DBASE_CREATE, XLOG_DBASE_DROP, XLogDropDatabase(), XLogRecGetData, XLogRecGetInfo, XLogRecHasAnyBlockRefs, and XLR_INFO_MASK.