Skip to content
Snippets Groups Projects
Commit d1e25b78 authored by Magnus Hagander's avatar Magnus Hagander
Browse files

Exclude postmaster.opts from base backups

Noted by Fujii Masao
parent 336c1d7a
No related branches found
No related tags found
No related merge requests found
...@@ -583,8 +583,9 @@ sendDir(char *path, int basepathlen, bool sizeonly) ...@@ -583,8 +583,9 @@ sendDir(char *path, int basepathlen, bool sizeonly)
snprintf(pathbuf, MAXPGPATH, "%s/%s", path, de->d_name); snprintf(pathbuf, MAXPGPATH, "%s/%s", path, de->d_name);
/* Skip postmaster.pid in the data directory */ /* Skip postmaster.pid and postmaster.opts in the data directory */
if (strcmp(pathbuf, "./postmaster.pid") == 0) if (strcmp(pathbuf, "./postmaster.pid") == 0 ||
strcmp(pathbuf, "./postmaster.opts") == 0)
continue; continue;
if (lstat(pathbuf, &statbuf) != 0) if (lstat(pathbuf, &statbuf) != 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment