Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs | Enumerations

pg_control.h File Reference

#include "access/xlogdefs.h"
#include "pgtime.h"
#include "utils/pg_crc.h"
Include dependency graph for pg_control.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CheckPoint
struct  ControlFileData

Defines

#define PG_CONTROL_VERSION   937
#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_HINT   0xA0
#define FLOATFORMAT_VALUE   1234567.0
#define PG_CONTROL_SIZE   8192

Typedefs

typedef struct CheckPoint CheckPoint
typedef enum DBState DBState
typedef struct ControlFileData ControlFileData

Enumerations

enum  DBState {
  DB_STARTUP = 0, DB_SHUTDOWNED, DB_SHUTDOWNED_IN_RECOVERY, DB_SHUTDOWNING,
  DB_IN_CRASH_RECOVERY, DB_IN_ARCHIVE_RECOVERY, DB_IN_PRODUCTION
}

Define Documentation

#define FLOATFORMAT_VALUE   1234567.0

Definition at line 192 of file pg_control.h.

Referenced by ReadControlFile().

#define PG_CONTROL_SIZE   8192

Definition at line 230 of file pg_control.h.

Referenced by ReadControlFile(), RewriteControlFile(), and WriteControlFile().

#define PG_CONTROL_VERSION   937

Definition at line 24 of file pg_control.h.

Referenced by ReadControlFile().

#define XLOG_BACKUP_END   0x50

Definition at line 65 of file pg_control.h.

Referenced by do_pg_stop_backup(), xlog_desc(), and xlog_redo().

#define XLOG_CHECKPOINT_ONLINE   0x10

Definition at line 61 of file pg_control.h.

Referenced by CreateCheckPoint(), ReadCheckpointRecord(), xlog_desc(), and xlog_redo().

#define XLOG_CHECKPOINT_SHUTDOWN   0x00
#define XLOG_END_OF_RECOVERY   0x90

Definition at line 69 of file pg_control.h.

Referenced by CreateEndOfRecoveryRecord(), StartupXLOG(), xlog_desc(), and xlog_redo().

#define XLOG_FPW_CHANGE   0x80

Definition at line 68 of file pg_control.h.

Referenced by UpdateFullPageWrites(), xlog_desc(), and xlog_redo().

#define XLOG_HINT   0xA0

Definition at line 70 of file pg_control.h.

Referenced by xlog_desc(), xlog_redo(), and XLogSaveBufferForHint().

#define XLOG_NEXTOID   0x30

Definition at line 63 of file pg_control.h.

Referenced by xlog_desc(), xlog_redo(), and XLogPutNextOid().

#define XLOG_NOOP   0x20

Definition at line 62 of file pg_control.h.

Referenced by xlog_desc(), and xlog_redo().

#define XLOG_PARAMETER_CHANGE   0x60

Definition at line 66 of file pg_control.h.

Referenced by xlog_desc(), xlog_redo(), and XLogReportParameters().

#define XLOG_RESTORE_POINT   0x70

Definition at line 67 of file pg_control.h.

Referenced by recoveryStopsHere(), xlog_desc(), xlog_redo(), and XLogRestorePoint().

#define XLOG_SWITCH   0x40

Typedef Documentation

typedef struct CheckPoint CheckPoint
typedef enum DBState DBState

Enumeration Type Documentation

enum 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 77 of file pg_control.h.

{
    DB_STARTUP = 0,
    DB_SHUTDOWNED,
    DB_SHUTDOWNED_IN_RECOVERY,
    DB_SHUTDOWNING,
    DB_IN_CRASH_RECOVERY,
    DB_IN_ARCHIVE_RECOVERY,
    DB_IN_PRODUCTION
} DBState;