?????????????????ú???
????????????????????????л???sender????
????8467 postgres  20   0  255m 2396 1492 S  0.0  0.1   0:00.66 postgres: wal sender process replica
????????????????л???receiver????
????8466 postgres  20   0  298m 1968 1096 S  0.0  0.1   0:06.88 postgres: wal receiver process   streaming 3/CF118C18
????????????
????????????У?
postgres=# select * from pg_stat_replication;
-[ RECORD 1 ]----+------------------------------
pid              | 8467       # sender?????
usesysid         | 44673      # ????????id
usename          | replica    # ?????????????
application_name | walreceiver
client_addr      | 10.12.12.12 # ???????????
client_hostname  |
client_port      | 55804  # ???????????
backend_start    | 2015-05-12 07:31:16.972157+08  # ?????????????
backend_xmin     |
state            | streaming  # ????? startup: ?????С?catchup: ????С?streaming: ???
sent_location    | 3/CF123560 # Master????WAL??λ??
write_location   | 3/CF123560 # Slave????WAL??λ??
flush_location   | 3/CF123560 # Slave??????????WALλ??
replay_location  | 3/CF123560 # Slave???????????WALλ??
sync_priority    | 0  #???Replication???????
0: ????1???: ???(?????С????????)
sync_state       | async  # ?????????async: ????sync: ?????potential: ????????????????????п??????????????
???????????
?????????????sync_state???????????????????
????????????????????????????????????????????????????????????????????????????????????????????????????????????е???????????????????????????С?????????????????????????????????????