mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Exclude postmaster.opts from base backups
Noted by Fujii Masao
This commit is contained in:
@ -577,8 +577,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)
|
||||||
|
Reference in New Issue
Block a user