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 1lJOI6-0000U0-OR for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 22:23:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJOI5-0005dU-LT for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 22:23:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJOI5-0005d3-Dc for pgsql-general@lists.postgresql.org; Mon, 08 Mar 2021 22:23:53 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJOI1-0003fE-6D for pgsql-general@postgresql.org; Mon, 08 Mar 2021 22:23:53 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id CC6431DA8; Tue, 9 Mar 2021 00:23:47 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lw7Q5eCSw0hp; Tue, 9 Mar 2021 00:23:45 +0200 (EET) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 6E0C21D9B; Tue, 9 Mar 2021 00:23:45 +0200 (EET) Subject: Re: Log files polluted with permission denied error messages after every 10 seconds To: Tom Lane , Thomas Munro Cc: Michael Paquier , Laurenz Albe , pgsql-general References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee> <676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at> <97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee> <1881481.1615240712@sss.pgh.pa.us> From: Andrus Message-ID: Date: Tue, 9 Mar 2021 00:23:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <1881481.1615240712@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------A2283E6BD412AC7A91908112" Content-Language: et List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------A2283E6BD412AC7A91908112 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit > Yeah, I've wondered for some time if the apparent EACCES code is > actually being mapped from something other than ERROR_SHARING_VIOLATION > in (some of?) these reports. The hard part is to hold onto the > Windows error code alongside errno without massively invasive changes. Permission denied error occur in  Windows. Debian logs doesnt contain it. In Windows also pg_database_size('mydb')  and similar ones fail frequently with permission denied error. I got information about r1soft idera backup client used. It runs only once per night for 16 minutes and compares disk blocks to find changed blocks to backup. So it should not cause permission denied errors after every 10 seconds. Andrus. --------------A2283E6BD412AC7A91908112 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Yeah, I've wondered for some time if the apparent EACCES code is
actually being mapped from something other than ERROR_SHARING_VIOLATION
in (some of?) these reports.  The hard part is to hold onto the
Windows error code alongside errno without massively invasive changes.

Permission denied error occur in  Windows. Debian logs doesnt contain it.

In Windows also pg_database_size('mydb')  and similar ones fail frequently with permission denied error.

I got information about r1soft idera backup client used. It runs only once per night for 16 minutes and compares disk blocks to find changed blocks to backup. So it should not cause permission denied errors after every 10 seconds.

Andrus.

--------------A2283E6BD412AC7A91908112--