From f45aa077b1aec820bf902c0ace774c5bfd9a431c Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Sat, 23 Oct 2010 20:44:05 -0500 Subject: [PATCH] Add message to remember we should REINDEX any hash indexes, i decided not to do it myself because it could take a long time if the index is big. --- repmgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repmgr.c b/repmgr.c index 65eb76a5..35a31781 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1025,7 +1025,9 @@ do_standby_promote(void) /* reconnect to check we got promoted */ conn = establishDBConnection(conninfo, true); if (is_standby(conn)) - fprintf(stderr, "%s: STANDBY PROMOTE failed, this is still a standby node\n", progname); + fprintf(stderr, "\n%s: STANDBY PROMOTE failed, this is still a standby node.\n", progname); + else + fprintf(stderr, "\n%s: you should REINDEX any hash indexes you have.\n", progname); PQfinish(conn); return;