projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cecb590
)
Use NOWAIT when including WAL in base backup
author
Magnus Hagander
<
[email protected]
>
Thu, 10 Feb 2011 11:10:13 +0000
(12:10 +0100)
committer
Magnus Hagander
<
[email protected]
>
Thu, 10 Feb 2011 11:11:23 +0000
(12:11 +0100)
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.
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_basebackup.c
b/src/bin/pg_basebackup/pg_basebackup.c
index 98414a99c65dae0f24dc1ef37162f10d9ce17c99..61aa1d382c66528da126fa5da868d1b3a8a871d8 100644
(file)
--- 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)
{