PG 控制文件

简介: 数据库启动时会读取控制文件,识别上次关机前的状态信息(元数据信息)

[postgres@localhost ~]$ pg_controldata $PGDAT
pg_control version number: 942
Catalog version number: 201510051
Database system identifier: 7101134005590396367 #dbid
Database cluster state: in production #primary
pg_control last modified: 2022年05月26日 星期四 16时42分02秒
Latest checkpoint location: 0/183CC58
Prior checkpoint location: 0/183A9C0
Latest checkpoint's REDO location: 0/183CC58 #redo位置
Latest checkpoint's REDO WAL file: 000000010000000000000001 #wal文件号
Latest checkpoint's TimeLineID: 1
Latest checkpoint's PrevTimeLineID: 1
Latest checkpoint's full_page_writes: on
Latest checkpoint's NextXID: 0/1882 #下一个事务id
Latest checkpoint's NextOID: 32789 #下一个OID
Latest checkpoint's NextMultiXactId: 1
Latest checkpoint's NextMultiOffset: 0
Latest checkpoint's oldestXID: 1825
Latest checkpoint's oldestXID's DB: 1
Latest checkpoint's oldestActiveXID: 0
Latest checkpoint's oldestMultiXid: 1
Latest checkpoint's oldestMulti's DB: 1
Latest checkpoint's oldestCommitTsXid:0
Latest checkpoint's newestCommitTsXid:0
Time of latest checkpoint: 2022年05月26日 星期四 16时42分01秒
Fake LSN counter for unlogged rels: 0/1
Minimum recovery ending location: 0/0
Min recovery ending loc's timeline: 0
Backup start location: 0/0
Backup end location: 0/0
End-of-backup record required: no
wal_level setting: minimal #wal级别
wal_log_hints setting: off
max_connections setting: 100 #最大连接数
max_worker_processes setting: 8
max_prepared_xacts setting: 0
max_locks_per_xact setting: 64
track_commit_timestamp setting: off
Maximum data alignment: 8
Database block size: 8192 #数据块大小 8KB
Blocks per segment of large relation: 131072
WAL block size: 8192 #wal数据块大小
Bytes per WAL segment: 16777216 #单个wal大小 16M
Maximum length of identifiers: 64
Maximum columns in an index: 32
Maximum size of a TOAST chunk: 1996
Size of a large-object chunk: 2048
Date/time type storage: 64-bit integers
Float4 argument passing: by value
Float8 argument passing: by value
Data page checksum version: 0

目录
相关文章
|
7月前
|
SQL 关系型数据库 数据库连接
`pg_dump` 和 `pg_restore`
`pg_dump` 和 `pg_restore`
97 4
|
Oracle 关系型数据库 数据库
oracle学习35-rman备份-参数文件spfile损坏恢复
oracle学习35-rman备份-参数文件spfile损坏恢复
135 0
|
关系型数据库 数据库 PostgreSQL
PG 数据文件
每个索引和表都是一个单独的文件,page页/段,默认1G,大于1G的page会被分割
323 0
|
数据库 文件存储
|
关系型数据库
Postgres:pg_basebackup物理备份与还原
vim $PGDAT/postgresql.conf 将wal_level = archive(or hot_standby); 开启archive mode,archive_mode =...
2740 0