Re: pg_basebackup: errors on macOS on directories with ".DS_Store" files
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: michael@paquier.xyz
Cc: daniel@yesql.se, t.bussmann@gmx.net, tgl@sss.pgh.pa.us,
markguertin@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2023-04-21T03:02:20Z
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
At Fri, 21 Apr 2023 07:33:09 +0900, Michael Paquier <michael@paquier.xyz> wrote in > 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.. After applying the change, sendDir excludes some files in the the following steps. 1. Excludes "." and ".." quietly. 2. Excludes files starting with "pgsql_tmp", quietly. 3. (new) Excludes files begins with '.', quietly. (checks signal) 4. Excludes everything suggested by excludeFiles then reports the excluded files using DEBUG1. 5. Excludes files based on more complex conditions. These steps seem a bit arbitrary. Is there any reason we keep step 1 seprate from step 3, and step 2 seprate from step 4? regards. -- Kyotaro Horiguchi NTT Open Source Software Center