Answer the question
In order to leave comments, you need to log in
How to check replication backlog in PostgreSQL?
Good afternoon!
I would like to see how much the write to the slave table lags behind the write to the master table with streaming replication in PostgreSQL 9.3. To do this, I made a test_time table of 2 fields: id (integer), t (text). Added trigger:
my_time:=to_char(current_timestamp, 'HH12:MI:SS:MS:US');
update test_time set t=my_time where id=new.id;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question