Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2e61ec

Browse files
committed
Use NOWAIT when including WAL in base backup
Avoids warning and waiting for the last segment to bearchived, which isn't necessary when we're including therequired WAL in the backup itself.
1 parentcecb590 commita2e61ec

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)

[8]ページ先頭

©2009-2025 Movatter.jp