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 1lJNuL-000898-9u for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 21:59:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJNto-0004OS-F1 for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 21:58:48 +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 1lJNto-0004OK-7L for pgsql-general@lists.postgresql.org; Mon, 08 Mar 2021 21:58:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJNtm-0003Tu-AA for pgsql-general@postgresql.org; Mon, 08 Mar 2021 21:58:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 128LwWlG1881482; Mon, 8 Mar 2021 16:58:32 -0500 From: Tom Lane To: Thomas Munro cc: Michael Paquier , Andrus , Laurenz Albe , pgsql-general Subject: Re: Log files polluted with permission denied error messages after every 10 seconds In-reply-to: References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee> <676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at> <97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee> Comments: In-reply-to Thomas Munro message dated "Tue, 09 Mar 2021 10:25:59 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1881480.1615240712.1@sss.pgh.pa.us> Date: Mon, 08 Mar 2021 16:58:32 -0500 Message-ID: <1881481.1615240712@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > Another thought: if it's not a sharing violation, I wonder if we > should consider dumping more raw Windows error information in the > messages we log, because, if I recall correctly, we're converting many > Windows error codes into few Unix-style error numbers and thereby > throwing away valuable clues. It makes it a bit more confusing when > trying to ask a Windows expert what might be happening. 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. regards, tom lane