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

Commitd1e25b7

Browse files
committed
Exclude postmaster.opts from base backups
Noted by Fujii Masao
1 parent336c1d7 commitd1e25b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/replication/basebackup.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,9 @@ sendDir(char *path, int basepathlen, bool sizeonly)
583583

584584
snprintf(pathbuf,MAXPGPATH,"%s/%s",path,de->d_name);
585585

586-
/* Skip postmaster.pid in the data directory */
587-
if (strcmp(pathbuf,"./postmaster.pid")==0)
586+
/* Skip postmaster.pid and postmaster.opts in the data directory */
587+
if (strcmp(pathbuf,"./postmaster.pid")==0||
588+
strcmp(pathbuf,"./postmaster.opts")==0)
588589
continue;
589590

590591
if (lstat(pathbuf,&statbuf)!=0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp