mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Skip .DS_Store files in server side utils
The macOS Finder application creates .DS_Store files in directories when opened, which creates problems for serverside utilities which expect all files to be PostgreSQL specific files. Skip these files when encountered in pg_checksums, pg_rewind and pg_basebackup. This was extracted from a larger patchset for skipping hidden files and system files, where the concencus was to just skip these. Since this is equally likely to happen in every version, backpatch to all supported versions. Reported-by: Mark Guertin <markguertin@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Tobias Bussmann <t.bussmann@gmx.net> Discussion: https://postgr.es/m/E258CE50-AB0E-455D-8AAD-BB4FE8F882FB@gmail.com Backpatch-through: v12
This commit is contained in:
@@ -965,7 +965,8 @@ PostgreSQL documentation
|
||||
The backup will include all files in the data directory and tablespaces,
|
||||
including the configuration files and any additional files placed in the
|
||||
directory by third parties, except certain temporary files managed by
|
||||
PostgreSQL. But only regular files and directories are copied, except that
|
||||
PostgreSQL and operating system files. But only regular files and
|
||||
directories are copied, except that
|
||||
symbolic links used for tablespaces are preserved. Symbolic links pointing
|
||||
to certain directories known to PostgreSQL are copied as empty directories.
|
||||
Other symbolic links and special device files are skipped.
|
||||
|
||||
Reference in New Issue
Block a user