誰かがpgsqlのレプリケーションの状態を確認する手順を提案できますが、レプリケーションが正しく実行されていないと言うことはありますか?check postgres replication status
は、我々はpgsql9.0とpgsql9.4
おかげでストリーミングレプリケーションを使用しています。ご主人に
誰かがpgsqlのレプリケーションの状態を確認する手順を提案できますが、レプリケーションが正しく実行されていないと言うことはありますか?check postgres replication status
は、我々はpgsql9.0とpgsql9.4
おかげでストリーミングレプリケーションを使用しています。ご主人に
、pg_stat_replication現在進行中の複製に関するデータを提供します。
select client_addr, state, sent_location, write_location,
flush_location, replay_location from pg_stat_replication;
[OK]を上記のクエリで0行が返された場合はどうなりますか? – gvasquez
0 rowsは、サーバーでレプリケーションが構成されていないことを意味します。正しく設定されていれば、行を取得する必要がありますが、スレーブが接続していない可能性があります( '状態'列を確認してください) – Reinsbrain
mmmm ...複製がうまくいって失敗しました行は表示されません。https://dba.stackexchange.com/questions/180062/post-mortem-analysis-postgresql-replication-failed – gvasquez
http://stackoverflow.com/questions/28323355/how-to-check-the-replication-delay-in-postgresql –