On Mon, Jan 20, 2014 at 1:53 PM, Granthana Biswas <granthana@zedo.com> wrote:Yes we already do that. Count the number of ready wal files.I guess a better place to check would be pg_stat_replicationCheck this discussion:http://www.postgresql.org/message-id/4F13ED11.6080001@gmail.comAnother way is explained in wiki:http://wiki.postgresql.org/wiki/Streaming_Replication$ psql -c "SELECT pg_current_xlog_location()" -h192.168.0.10 (primary host)pg_current_xlog_location --------------------------0/2000000 (1 row) $ psql -c "select pg_last_xlog_receive_location()" -h192.168.0.20 (standby host)pg_last_xlog_receive_location -------------------------------0/2000000 (1 row) $ psql -c "select pg_last_xlog_replay_location()" -h192.168.0.20 (standby host)pg_last_xlog_replay_location ------------------------------0/2000000 (1 row)
Yes we already do that. Count the number of ready wal files.
$ psql -c "SELECT pg_current_xlog_location()" -h192.168.0.10 (primary host)pg_current_xlog_location --------------------------0/2000000 (1 row) $ psql -c "select pg_last_xlog_receive_location()" -h192.168.0.20 (standby host)pg_last_xlog_receive_location -------------------------------0/2000000 (1 row) $ psql -c "select pg_last_xlog_replay_location()" -h192.168.0.20 (standby host)pg_last_xlog_replay_location ------------------------------0/2000000 (1 row)
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных