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 1lMYMT-00036H-7q for pgsql-general@arkaria.postgresql.org; Wed, 17 Mar 2021 15:45:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMYMR-0003Lh-NZ for pgsql-general@arkaria.postgresql.org; Wed, 17 Mar 2021 15:45:27 +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 1lMYMR-0003La-GL for pgsql-general@lists.postgresql.org; Wed, 17 Mar 2021 15:45:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMYM4-0005lo-Qm for pgsql-general@postgresql.org; Wed, 17 Mar 2021 15:45:26 +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 12HFim2u3519322; Wed, 17 Mar 2021 11:44:48 -0400 From: Tom Lane To: Andrus cc: Laurenz Albe , Michael Paquier , Thomas Munro , Niels Jespersen , pgsql-general Subject: Re: SV: Log files polluted with permission denied error messages after every 10 seconds In-reply-to: <1d2706f2-6fbe-ed5f-22ed-56358c154053@hot.ee> References: <1881481.1615240712@sss.pgh.pa.us> <94330326-5fa0-279a-937c-c4806e1fcd5a@hot.ee> <2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee> <2b675d25-e86c-ea29-b02e-6bad5d55fbe3@hot.ee> <22ec98b1-cc2f-8e6a-f1d7-ee528237f2fb@hot.ee> <78e6daee-0323-752d-c142-263a80154e18@hot.ee> <6538dfd4-9820-6e30-3eb3-5e035d8aba05@hot.ee> <7f13c1a55d615265364a888801ca3a7272df9c5a.camel@cybertec.at> <843d2c8b-2e7a-8d4f-940a-2e3283690026@hot.ee> <908a9bcb7a29d5a2edbe354d1a4b2c91d709f212.camel@cybertec.at> <1d2706f2-6fbe-ed5f-22ed-56358c154053@hot.ee> Comments: In-reply-to Andrus message dated "Wed, 17 Mar 2021 17:24:42 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3519320.1615995888.1@sss.pgh.pa.us> Date: Wed, 17 Mar 2021 11:44:48 -0400 Message-ID: <3519321.1615995888@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrus writes: > It looks like too small buffer is passed to NtQueryInformationFile . Oh! That's an interesting theory; it'd explain why this broke recently, because we didn't use to use that function. But how do you draw that conclusion from this stack trace? Anyway, if you've diagnosed this correctly, I bet the fault is in this bit in win32stat.c: #if _WIN32_WINNT < 0x0600 IO_STATUS_BLOCK ioStatus; FILE_STANDARD_INFORMATION standardInfo; #else FILE_STANDARD_INFO standardInfo; #endif Maybe the version cutoff is wrong? Maybe we have to do this with a run-time version check, instead of statically compiling it? regards, tom lane