Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppSGU-0005R7-KH for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2023 11:15:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppSGS-0001xe-Hp for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Apr 2023 11:15:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppSGS-0001xU-98 for pgsql-bugs@lists.postgresql.org; Thu, 20 Apr 2023 11:15:48 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppSGO-000rhm-Tb for pgsql-bugs@lists.postgresql.org; Thu, 20 Apr 2023 11:15:47 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 76A592F8853E for ; Thu, 20 Apr 2023 13:15:41 +0200 (CEST) Received: from s981.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 66CF82E28441; Thu, 20 Apr 2023 13:15:41 +0200 (CEST) Received: from s473.loopia.se (unknown [172.22.191.5]) by s981.loopia.se (Postfix) with ESMTP id 63B1B22B17BA; Thu, 20 Apr 2023 13:15:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s899.loopia.se ([172.22.191.6]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id UNMZrQqIs-gj; Thu, 20 Apr 2023 13:15:41 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id D08FB2C8BA90; Thu, 20 Apr 2023 13:15:40 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: pg_basebackup: errors on macOS on directories with ".DS_Store" files From: Daniel Gustafsson In-Reply-To: Date: Thu, 20 Apr 2023 13:15:40 +0200 Cc: Michael Paquier , Tom Lane , Mark Guertin , pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <794684A8-D3FF-4109-815F-C9EB66AF65EA@gmx.net> <3000521.1681928151@sss.pgh.pa.us> <5781DAEE-66E2-41F5-BE03-E82C729F1340@yesql.se> To: Tobias Bussmann X-Mailer: Apple Mail (2.3696.120.41.1.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 20 Apr 2023, at 11:51, Tobias Bussmann wrote: >=20 >> Am 20.04.2023 um 10:50 schrieb Daniel Gustafsson : >>=20 >> Skimming other callsites of ReadDir and readdir I didn't see any = others >> which could benefit from skipping hidden files. >=20 > Could /src/bin/pg_rewind/filemap.c be another candidate for skipping = hidden files? The 'copy all other files'-behaviour seems to be similar = to what pg_basebackup does and it uses the same exclude_list_item = blacklist mechanism. 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. -- Daniel Gustafsson