mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Clarify the role of checkpoint at the begininng of base backups
Output a message about checkpoint starting in verbose mode of pg_basebackup, and make the documentation state more clearly that this happens. Author: Michael Banck
This commit is contained in:
@ -1753,6 +1753,14 @@ BaseBackup(void)
|
||||
if (maxrate > 0)
|
||||
maxrate_clause = psprintf("MAX_RATE %u", maxrate);
|
||||
|
||||
if (verbose)
|
||||
fprintf(stderr,
|
||||
_("%s: initiating base backup, waiting for checkpoint to complete\n"),
|
||||
progname);
|
||||
|
||||
if (showprogress && !verbose)
|
||||
fprintf(stderr, "waiting for checkpoint\n");
|
||||
|
||||
basebkp =
|
||||
psprintf("BASE_BACKUP LABEL '%s' %s %s %s %s %s %s",
|
||||
escaped_label,
|
||||
@ -1790,6 +1798,9 @@ BaseBackup(void)
|
||||
|
||||
strlcpy(xlogstart, PQgetvalue(res, 0, 0), sizeof(xlogstart));
|
||||
|
||||
if (verbose)
|
||||
fprintf(stderr, _("%s: checkpoint completed\n"), progname);
|
||||
|
||||
/*
|
||||
* 9.3 and later sends the TLI of the starting point. With older servers,
|
||||
* assume it's the same as the latest timeline reported by
|
||||
|
Reference in New Issue
Block a user