From 4b6c097a3eaf2559311c1b63bc5325de285d9244 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 16 Jan 2015 08:46:28 +0900 Subject: [PATCH] Use AS for consistency --- repmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index c6bd5e0f..2a2a145b 100644 --- a/repmgr.c +++ b/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 "