1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| #select * from pg_stat_replication; postgres=# select * from pg_stat_replication; -[ RECORD 1 ] pid | 13321 usesysid | 17019 usename | replication application_name | walreceiver client_addr | 10.0.0.81 client_hostname | client_port | 42809 backend_start | 2016-08-11 10:57:35.856289+08 backend_xmin | state | streaming sent_location | 1/E0CE9750 write_location | 1/E0CE9750 flush_location | 1/E0CE9750 replay_location | 1/E0CE9750 sync_priority | 0 sync_state | async
state: 同步状态 streaming : 同步 startup : 连接中 catchup: 同步中
sync_state: 同步模式. async : 异步 sync : 同步 potential: 虽然现在是异步,但有可能提升到同步
|