From 3e4a5e6ff5f386391c06aa639fbd8ff6299e1db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Marqu=C3=A9s?= Date: Wed, 22 Nov 2017 17:13:58 -0300 Subject: [PATCH] Fix missing FQN for the nodes table. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bug was not detected before because most users work with the repmgr user. For that reason, the repmgr schema is already in the search_path by default. Add the repmgr schema to the nodes table in the LEFT JOIN used for cluster show (and in other places) Signed-off-by: Martín Marqués --- dbutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbutils.c b/dbutils.c index 72112d0b..f2b8059f 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2130,7 +2130,7 @@ get_all_node_records_with_upstream(PGconn *conn, NodeInfoList *node_list) " SELECT n.node_id, n.type, n.upstream_node_id, n.node_name, n.conninfo, n.repluser, " " n.slot_name, n.location, n.priority, n.active, un.node_name AS upstream_node_name " " FROM repmgr.nodes n " - " LEFT JOIN nodes un " + " LEFT JOIN repmgr.nodes un " " ON un.node_id = n.upstream_node_id" " ORDER BY n.node_id ");