Skip to content

Commit d1e25b7

Browse files
committed
Exclude postmaster.opts from base backups
Noted by Fujii Masao
1 parent 336c1d7 commit d1e25b7

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)
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