From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tobias Bussmann <t.bussmann@gmx.net>
Cc: Mark Guertin <markguertin@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: pg_basebackup: errors on macOS on directories with ".DS_Store" files
Date: Wed, 19 Apr 2023 14:15:51 -0400
Message-ID: <3000521.1681928151@sss.pgh.pa.us> (raw)
In-Reply-To: <794684A8-D3FF-4109-815F-C9EB66AF65EA@gmx.net>
References: <E258CE50-AB0E-455D-8AAD-BB4FE8F882FB@gmail.com>
<794684A8-D3FF-4109-815F-C9EB66AF65EA@gmx.net>
Tobias Bussmann <t.bussmann@gmx.net> writes:
>> pg_basebackup: error: backup failed: ERROR: invalid segment number 0 in file ".DS_Store"
> This seem to be the same problem as already discussed in [1]: Tools like pg_basebackup and pg_checksums can get upset if there are random extra files in $PGDATA/base, /global or /pg_tblspc. Unfortunately, macOS has the habit to create such files quite easily. If I read the outcome correctly, we are back at a blacklist approach, so adding ".DS_Store" may be something to consider.
> [1]: <https://www.postgresql.org/message-id/flat/20181021134206.GA14282%40paquier.xyz;
Yeah. I wonder if we ought to do something more general, and
ignore all files whose names start with ".".
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, t.bussmann@gmx.net, markguertin@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: pg_basebackup: errors on macOS on directories with ".DS_Store" files
In-Reply-To: <3000521.1681928151@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox