Re: pg_basebackup: errors on macOS on directories with ".DS_Store" files
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Michael Paquier <michael@paquier.xyz>
Cc: Tobias Bussmann <t.bussmann@gmx.net>,
Tom Lane <tgl@sss.pgh.pa.us>,
Mark Guertin <markguertin@gmail.com>,
pgsql-bugs@lists.postgresql.org
Date: 2023-04-27T09:08:00Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Skip .DS_Store files in server side utils
- d3fdfdcd1c7f 13.15 landed
- c1fc502f595b 17.0 landed
- aeee173d2292 14.12 landed
- 76bb6dd2e56c 12.19 landed
- 29f00523808a 15.7 landed
- 103235888d9e 16.3 landed
Attachments
- skip_hidden_files_v2.diff (application/octet-stream) patch v2
> On 21 Apr 2023, at 00:33, Michael Paquier <michael@paquier.xyz> wrote: > > On Thu, Apr 20, 2023 at 01:15:40PM +0200, Daniel Gustafsson wrote: >> Maybe. I'm a bit hesitant to add too many smarts to pg_rewind. It's a tool >> for when something has gone wrong with a cluster (albeit probably not at the >> filesystem level), and at that point I feel it's better to put the user fully >> in charge. Perhaps I'm overly cautious, curious to hear from others. > > Hmm. pg_rewind is mostly a differential block-level backup tool, so > applying the same rules everywhere across the board would be sensible > here. See that exclude_list_item is able to handle prefixes, and we > may want to extend the same logic for the directory list, as well.. > > By the way, the patch ought to add some tests? For pg_basebackup, > this would be around "These files should not be copied" in > 010_pg_basebackup.pl. pg_checksums has also its own checks in > 002_actions.pl. Skipping hidden files in pg_rewind added as well as tests for all three utilities and mentions of this in the docs. I'll park this in the next commitfest for now. -- Daniel Gustafsson