From 07d220cb005702b681026c92e69aeb6ce8a2d3a6 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 31 Mar 2015 18:14:32 +0900 Subject: [PATCH] Correct monitoring table column names It would be more consistent to change the "primary" to "master" but that would make the table incompatible with the v2.0 table. --- repmgrd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repmgrd.c b/repmgrd.c index 5adddaef..7e5d60d2 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -645,9 +645,9 @@ witness_monitor(void) */ sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_monitor " - " (master_node, standby_node, " + " (primary_node, standby_node, " " last_monitor_time, last_apply_time, " - " last_wal_master_location, last_wal_standby_location, " + " last_wal_primary_location, last_wal_standby_location, " " replication_lag, apply_lag )" " VALUES(%d, %d, " " '%s'::TIMESTAMP WITH TIME ZONE, NULL, " @@ -1001,9 +1001,9 @@ standby_monitor(void) */ sqlquery_snprintf(sqlquery, "INSERT INTO %s.repl_monitor " - " (master_node, standby_node, " + " (primary_node, standby_node, " " last_monitor_time, last_apply_time, " - " last_wal_master_location, last_wal_standby_location, " + " last_wal_primary_location, last_wal_standby_location, " " replication_lag, apply_lag ) " " VALUES(%d, %d, " " '%s'::TIMESTAMP WITH TIME ZONE, '%s'::TIMESTAMP WITH TIME ZONE, "