summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander2011-02-10 11:10:13 +0000
committerMagnus Hagander2011-02-10 11:11:23 +0000
commita2e61ec31999228a3bb66a6a86f9e75beb6bb155 (patch)
tree6092ee720e64113f6b749e472a08d88de0264448 /src
parentcecb5901b8bb8b9eba140cda96e0d9a83607e6fa (diff)
Use NOWAIT when including WAL in base backup
Avoids warning and waiting for the last segment to be archived, which isn't necessary when we're including the required WAL in the backup itself.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 98414a99c65..61aa1d382c6 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -777,11 +777,12 @@ BaseBackup()
* Start the actual backup
*/
PQescapeStringConn(conn, escaped_label, label, sizeof(escaped_label), &i);
- snprintf(current_path, sizeof(current_path), "BASE_BACKUP LABEL '%s' %s %s %s",
+ snprintf(current_path, sizeof(current_path), "BASE_BACKUP LABEL '%s' %s %s %s %s",
escaped_label,
showprogress ? "PROGRESS" : "",
includewal ? "WAL" : "",
- fastcheckpoint ? "FAST" : "");
+ fastcheckpoint ? "FAST" : "",
+ includewal ? "NOWAIT" : "");
if (PQsendQuery(conn, current_path) == 0)
{