mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
Exclude postmaster.opts from base backups
Noted by Fujii Masao
This commit is contained in:
parent
336c1d7a51
commit
d1e25b78f9
1 changed files with 3 additions and 2 deletions
|
|
@ -583,8 +583,9 @@ sendDir(char *path, int basepathlen, bool sizeonly)
|
|||
|
||||
snprintf(pathbuf, MAXPGPATH, "%s/%s", path, de->d_name);
|
||||
|
||||
/* Skip postmaster.pid in the data directory */
|
||||
if (strcmp(pathbuf, "./postmaster.pid") == 0)
|
||||
/* Skip postmaster.pid and postmaster.opts in the data directory */
|
||||
if (strcmp(pathbuf, "./postmaster.pid") == 0 ||
|
||||
strcmp(pathbuf, "./postmaster.opts") == 0)
|
||||
continue;
|
||||
|
||||
if (lstat(pathbuf, &statbuf) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue