PostgreSQL Source Code: src/include/catalog/pg_control.h File Reference (original) (raw)
Go to the source code of this file.
Macros | |
---|---|
#define | PG_CONTROL_VERSION 1800 |
#define | MOCK_AUTH_NONCE_LEN 32 |
#define | XLOG_CHECKPOINT_SHUTDOWN 0x00 |
#define | XLOG_CHECKPOINT_ONLINE 0x10 |
#define | XLOG_NOOP 0x20 |
#define | XLOG_NEXTOID 0x30 |
#define | XLOG_SWITCH 0x40 |
#define | XLOG_BACKUP_END 0x50 |
#define | XLOG_PARAMETER_CHANGE 0x60 |
#define | XLOG_RESTORE_POINT 0x70 |
#define | XLOG_FPW_CHANGE 0x80 |
#define | XLOG_END_OF_RECOVERY 0x90 |
#define | XLOG_FPI_FOR_HINT 0xA0 |
#define | XLOG_FPI 0xB0 |
#define | XLOG_OVERWRITE_CONTRECORD 0xD0 |
#define | XLOG_CHECKPOINT_REDO 0xE0 |
#define | FLOATFORMAT_VALUE 1234567.0 |
#define | PG_CONTROL_MAX_SAFE_SIZE 512 |
#define | PG_CONTROL_FILE_SIZE 8192 |
Typedefs | |
---|---|
typedef struct CheckPoint | CheckPoint |
typedef enum DBState | DBState |
typedef struct ControlFileData | ControlFileData |
◆ FLOATFORMAT_VALUE
#define FLOATFORMAT_VALUE 1234567.0
◆ MOCK_AUTH_NONCE_LEN
#define MOCK_AUTH_NONCE_LEN 32
◆ PG_CONTROL_FILE_SIZE
#define PG_CONTROL_FILE_SIZE 8192
◆ PG_CONTROL_MAX_SAFE_SIZE
#define PG_CONTROL_MAX_SAFE_SIZE 512
◆ PG_CONTROL_VERSION
#define PG_CONTROL_VERSION 1800
◆ XLOG_BACKUP_END
#define XLOG_BACKUP_END 0x50
◆ XLOG_CHECKPOINT_ONLINE
#define XLOG_CHECKPOINT_ONLINE 0x10
◆ XLOG_CHECKPOINT_REDO
#define XLOG_CHECKPOINT_REDO 0xE0
◆ XLOG_CHECKPOINT_SHUTDOWN
#define XLOG_CHECKPOINT_SHUTDOWN 0x00
◆ XLOG_END_OF_RECOVERY
#define XLOG_END_OF_RECOVERY 0x90
◆ XLOG_FPI
◆ XLOG_FPI_FOR_HINT
#define XLOG_FPI_FOR_HINT 0xA0
◆ XLOG_FPW_CHANGE
#define XLOG_FPW_CHANGE 0x80
◆ XLOG_NEXTOID
#define XLOG_NEXTOID 0x30
◆ XLOG_NOOP
◆ XLOG_OVERWRITE_CONTRECORD
#define XLOG_OVERWRITE_CONTRECORD 0xD0
◆ XLOG_PARAMETER_CHANGE
#define XLOG_PARAMETER_CHANGE 0x60
◆ XLOG_RESTORE_POINT
#define XLOG_RESTORE_POINT 0x70
◆ XLOG_SWITCH
◆ CheckPoint
◆ ControlFileData
◆ DBState
◆ DBState
Enumerator |
---|
DB_STARTUP |
DB_SHUTDOWNED |
DB_SHUTDOWNED_IN_RECOVERY |
DB_SHUTDOWNING |
DB_IN_CRASH_RECOVERY |
DB_IN_ARCHIVE_RECOVERY |
DB_IN_PRODUCTION |
Definition at line 89 of file pg_control.h.
90{
@ DB_SHUTDOWNED_IN_RECOVERY
◆ StaticAssertDecl() [1/2]
◆ StaticAssertDecl() [2/2]
StaticAssertDecl | ( | sizeof(ControlFileData)<= | PG_CONTROL_MAX_SAFE_SIZE, |
---|---|---|---|
"pg_control is too large for atomic disk writes" | |||
) |