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 1oKT8M-00042G-Fx for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2022 23:23:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oKT8K-00031B-QY for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Aug 2022 23:23:04 +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 1oKT8K-000312-H2 for pgsql-hackers@lists.postgresql.org; Sat, 06 Aug 2022 23:23:04 +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 1oKT8E-0008NC-AH for pgsql-hackers@postgresql.org; Sat, 06 Aug 2022 23:23:03 +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 276NMsPa149697; Sat, 6 Aug 2022 19:22:54 -0400 From: Tom Lane To: Thomas Munro cc: Andres Freund , Andrew Dunstan , Robert Haas , pgsql-hackers Subject: Re: Cleaning up historical portability baggage In-reply-to: References: <1249825.1658622186@sss.pgh.pa.us> <20220804013546.h65najrzig764jar@awork3.anarazel.de> <3295936.1659577924@sss.pgh.pa.us> <20220804023010.24snkyq3hser5pxq@awork3.anarazel.de> <20220805210823.u546w4p4wzfany7p@awork3.anarazel.de> <20220806000311.ywx65iuchvj4qn2k@awork3.anarazel.de> <148623.1659827307@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Sun, 07 Aug 2022 11:14:36 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <149695.1659828174.1@sss.pgh.pa.us> Date: Sat, 06 Aug 2022 19:22:54 -0400 Message-ID: <149696.1659828174@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > I also wonder if half the stuff in win32gettimeofday.c can be deleted. > From some light googling, it looks like > GetSystemTimePreciseAsFileTime() can just be called directly on > Windows 8+ (and we now require 10+), and that kernel32.dll malarky was > for older systems? Yeah, Microsoft's man page for it just says to include sysinfoapi.h (which we aren't) and then it should work on supported versions. regards, tom lane