hgdb流复制备库提升为主库

来源:互联网 发布:计算流体力学 知乎 编辑:程序博客网 时间:2024/06/01 12:40
[highgo@hg data]$  pg_controldata
pg_control version number:            942
Catalog version number:               201409291
Database system identifier:           6407613912621653765
Database cluster state:               in archive recovery                  **************************************
pg_control last modified:             Fri 19 May 2017 11:37:40 AM CST
Latest checkpoint location:           0/27000028
Prior checkpoint location:            0/27000028
Latest checkpoint's REDO location:    0/27000028
Latest checkpoint's REDO WAL file:    000000010000000000000027
Latest checkpoint's TimeLineID:       1
Latest checkpoint's PrevTimeLineID:   1
Latest checkpoint's full_page_writes: on
Latest checkpoint's NextXID:          0/1854
Latest checkpoint's NextOID:          16410
Latest checkpoint's NextMultiXactId:  1
Latest checkpoint's NextMultiOffset:  0
Latest checkpoint's oldestXID:        1802
Latest checkpoint's oldestXID's DB:   1
Latest checkpoint's oldestActiveXID:  0
Latest checkpoint's oldestMultiXid:   1
Latest checkpoint's oldestMulti's DB: 1
Time of latest checkpoint:            Fri 19 May 2017 11:37:15 AM CST
Fake LSN counter for unlogged rels:   0/1
Minimum recovery ending location:     0/27000228
Min recovery ending loc's timeline:   1
Backup start location:                0/0
Backup end location:                  0/0
End-of-backup record required:        no
Current wal_level setting:            hot_standby
Current wal_log_hints setting:        off
Current max_connections setting:      200
Current max_worker_processes setting: 8
Current max_prepared_xacts setting:   0
Current max_locks_per_xact setting:   64
Maximum data alignment:               8
Database block size:                  8192
Blocks per segment of large relation: 131072
WAL block size:                       8192
Bytes per WAL segment:                16777216
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

[highgo@hg data]$ pg_ctl promote                                      ******************************************************
server promoting

[highgo@hg data]$  pg_controldata
pg_control version number:            942
Catalog version number:               201409291
Database system identifier:           6407613912621653765
Database cluster state:               in production                  ************************************************************
pg_control last modified:             Fri 19 May 2017 11:44:56 AM CST
Latest checkpoint location:           0/280000F8
Prior checkpoint location:            0/28000028
Latest checkpoint's REDO location:    0/280000C0
Latest checkpoint's REDO WAL file:    000000020000000000000028
Latest checkpoint's TimeLineID:       2
Latest checkpoint's PrevTimeLineID:   2
Latest checkpoint's full_page_writes: on
Latest checkpoint's NextXID:          0/1855
Latest checkpoint's NextOID:          16410
Latest checkpoint's NextMultiXactId:  1
Latest checkpoint's NextMultiOffset:  0
Latest checkpoint's oldestXID:        1802
Latest checkpoint's oldestXID's DB:   1
Latest checkpoint's oldestActiveXID:  1855
Latest checkpoint's oldestMultiXid:   1
Latest checkpoint's oldestMulti's DB: 1
Time of latest checkpoint:            Fri 19 May 2017 11:44:56 AM CST
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
Current wal_level setting:            hot_standby
Current wal_log_hints setting:        off
Current max_connections setting:      200
Current max_worker_processes setting: 8
Current max_prepared_xacts setting:   0
Current max_locks_per_xact setting:   64
Maximum data alignment:               8
Database block size:                  8192
Blocks per segment of large relation: 131072
WAL block size:                       8192
Bytes per WAL segment:                16777216
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
[highgo@hg data]$ 
原创粉丝点击