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.
This commit is contained in:
Jaime Casanova
2010-10-23 20:44:05 -05:00
parent 4641ddcc3f
commit f45aa077b1

View File

@@ -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;