mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add timestamp of last received message from standby to pg_stat_replication
The timestamp generated by the standby at message transmission has been included in the protocol since its introduction for both the status update message and hot standby feedback message, but it has never appeared in pg_stat_replication. Seeing this timestamp does not matter much with a cluster which has a lot of activity, but on a mostly-idle cluster, this makes monitoring able to react faster than the configured timeouts. Author: MyungKyu LIM Reviewed-by: Michael Paquier, Masahiko Sawada Discussion: https://postgr.es/m/1657809367.407321.1533027417725.JavaMail.jboss@ep2ml404
This commit is contained in:
@@ -75,6 +75,11 @@ typedef struct WalSnd
|
||||
* SyncRepLock.
|
||||
*/
|
||||
int sync_standby_priority;
|
||||
|
||||
/*
|
||||
* Timestamp of the last message received from standby.
|
||||
*/
|
||||
TimestampTz replyTime;
|
||||
} WalSnd;
|
||||
|
||||
extern WalSnd *MyWalSnd;
|
||||
|
Reference in New Issue
Block a user