Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fa7d5b7

Browse files
committed
Add verbosity to pg_basebackup for sync
This is useful to know when the data copy has been finished. The current situation can be confusing for users as the last message is "waiting for background process to finish streaming", so it looks like this is taking time but the final sync is instead. Author: Jeff Janes Discussion: https://postgr.es/m/CAMkU=1ypeoMJ=tFBG8vP13sxEtXd4Pm_x1SqsJdW_RvzpcvN=A@mail.gmail.com
1 parent e2c0df7 commit fa7d5b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,6 +2112,9 @@ BaseBackup(void)
21122112
*/
21132113
if (do_sync)
21142114
{
2115+
if (verbose)
2116+
fprintf(stderr,
2117+
_("%s: syncing data to disk ...\n"), progname);
21152118
if (format == 't')
21162119
{
21172120
if (strcmp(basedir, "-") != 0)

0 commit comments

Comments
 (0)