Add warning if --superuser option provided when it won't be used

Currently the only place this option is relevant is "standby clone".
This commit is contained in:
Ian Barwick
2020-03-23 15:23:58 +09:00
parent b691a1bd10
commit 12adb5e0d1
2 changed files with 15 additions and 1 deletions

View File

@@ -8388,6 +8388,7 @@ do_standby_help(void)
printf(_(" --no-upstream-connection when using Barman, do not connect to upstream node\n"));
printf(_(" -R, --remote-user=USERNAME database server username for SSH operations (default: \"%s\")\n"), runtime_options.username);
printf(_(" --replication-user user to make replication connections with (optional, not usually required)\n"));
printf(_(" -S, --superuser=USERNAME superuser to use, if repmgr user is not superuser\n"));
printf(_(" --upstream-conninfo \"primary_conninfo\" value to write in recovery.conf\n" \
" when the intended upstream server does not yet exist\n"));
printf(_(" --upstream-node-id ID of the upstream node to replicate from (optional, defaults to primary node)\n"));