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 1n7Mw5-0003dp-Er for pgsql-committers@arkaria.postgresql.org; Tue, 11 Jan 2022 19:36:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7Mw3-00081I-Kv for pgsql-committers@arkaria.postgresql.org; Tue, 11 Jan 2022 19:35:59 +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 1n7Mw3-000819-Ds for pgsql-committers@lists.postgresql.org; Tue, 11 Jan 2022 19:35:59 +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 1n7Mw1-0001mx-7s; Tue, 11 Jan 2022 19:35:58 +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 20BJZuDQ2760529; Tue, 11 Jan 2022 14:35:56 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Check for STATUS_DELETE_PENDING on Windows. In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Fri, 10 Dec 2021 03:22:03 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2760527.1641929756.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Jan 2022 14:35:56 -0500 Message-ID: <2760528.1641929756@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > Check for STATUS_DELETE_PENDING on Windows. The src/include/port/win32ntdll.h file added by this commit has a couple of deficiencies: 1. It lacks the usual anti-multiple-inclusion guard, i.e. #ifndef WIN32NTDLL_H or the like. Was there a specific reason to omit that? 2. headerscheck and cpluspluscheck don't like it, at least not on non-Windows: $ src/tools/pginclude/headerscheck = In file included from /tmp/headerscheck.WKh8cz/test.c:2: ./src/include/port/win32ntdll.h:20:10: fatal error: ntstatus.h: No such fi= le or directory #include ^~~~~~~~~~~~ One way to solve that, perhaps, is to wrap the whole header in #ifdef WIN32. But I think our more usual practice has been to add such headers to the exclusion lists in those two scripts. regards, tom lane