From d4c75bb6c7b71919d600964b00f89f10c05be517 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 8 Jul 2016 09:46:59 +0900 Subject: [PATCH] Add missing space when setting "application_name" --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index f053862a..e59d3f36 100644 --- a/repmgr.c +++ b/repmgr.c @@ -5164,7 +5164,7 @@ write_primary_conninfo(char *line, PGconn *primary_conn) /* `application_name` not provided - default to repmgr node name */ if (application_name_provided == false) - appendPQExpBuffer(&conninfo_buf, "application_name=%s", options.node_name); + appendPQExpBuffer(&conninfo_buf, " application_name=%s", options.node_name); maxlen_snprintf(line, "primary_conninfo = '%s'\n", conninfo_buf.data); }