Skip to content

Commit a2e61ec

Browse files
committed
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.
1 parent cecb590 commit a2e61ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,12 @@ BaseBackup()
777777
* Start the actual backup
778778
*/
779779
PQescapeStringConn(conn, escaped_label, label, sizeof(escaped_label), &i);
780-
snprintf(current_path, sizeof(current_path), "BASE_BACKUP LABEL '%s' %s %s %s",
780+
snprintf(current_path, sizeof(current_path), "BASE_BACKUP LABEL '%s' %s %s %s %s",
781781
escaped_label,
782782
showprogress ? "PROGRESS" : "",
783783
includewal ? "WAL" : "",
784-
fastcheckpoint ? "FAST" : "");
784+
fastcheckpoint ? "FAST" : "",
785+
includewal ? "NOWAIT" : "");
785786

786787
if (PQsendQuery(conn, current_path) == 0)
787788
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy