mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Use AS for consistency
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -2091,9 +2091,9 @@ create_schema(PGconn *conn)
|
||||
"CREATE VIEW %s.repl_status AS "
|
||||
" SELECT primary_node, standby_node, name AS standby_name, last_monitor_time, "
|
||||
" last_wal_primary_location, last_wal_standby_location, "
|
||||
" pg_size_pretty(replication_lag) replication_lag, "
|
||||
" pg_size_pretty(replication_lag) AS replication_lag, "
|
||||
" age(now(), last_apply_time) AS replication_time_lag, "
|
||||
" pg_size_pretty(apply_lag) apply_lag, "
|
||||
" pg_size_pretty(apply_lag) AS apply_lag, "
|
||||
" age(now(), CASE WHEN pg_is_in_recovery() THEN %s.repmgr_get_last_updated() ELSE last_monitor_time END) AS communication_time_lag "
|
||||
" FROM %s.repl_monitor "
|
||||
" JOIN %s.repl_nodes ON standby_node = id "
|
||||
|
||||
Reference in New Issue
Block a user