From c7542063bee4a21b172bf9c597c2fbc2605cf3c4 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 14 Jan 2016 22:51:02 +0900 Subject: [PATCH] Only display -c/--fast-checkpoint hint when using pg_basebackup --- repmgr.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/repmgr.c b/repmgr.c index 7929940d..2508ff78 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1498,10 +1498,15 @@ do_standby_clone(void) } } - log_notice(_("starting backup...\n")); - if (runtime_options.fast_checkpoint == false) + if (runtime_options.rsync_only) { - log_hint(_("this may take some time; consider using the -c/--fast-checkpoint option\n")); + log_notice(_("starting backup (using rsync)...\n")); + } + else + { + log_notice(_("starting backup (using pg_basebackup)...\n")); + if (runtime_options.fast_checkpoint == false) + log_hint(_("this may take some time; consider using the -c/--fast-checkpoint option\n")); } if (runtime_options.rsync_only)