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 1nuLNZ-0006kE-OT for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 21:50:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nuLNY-0007ea-LE for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2022 21:50: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 1nuLNY-0007eR-Bz for pgsql-hackers@lists.postgresql.org; Thu, 26 May 2022 21:50: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 1nuLNS-0003Y2-5q for pgsql-hackers@lists.postgresql.org; Thu, 26 May 2022 21:50: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 24QLoe882459698; Thu, 26 May 2022 17:50:40 -0400 From: Tom Lane To: Michael Paquier cc: Justin Pryzby , pgsql-hackers@lists.postgresql.org Subject: Re: Remove support for Visual Studio 2013 In-reply-to: References: <20220526154311.GA19626@telsasoft.com> Comments: In-reply-to Michael Paquier message dated "Fri, 27 May 2022 05:57:39 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2459696.1653601840.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 26 May 2022 17:50:40 -0400 Message-ID: <2459697.1653601840@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Thu, May 26, 2022 at 10:43:11AM -0500, Justin Pryzby wrote: >> Maybe consider removing this workaround? The original problem report i= ndicated >> that it didn't affect later versions: >> = >> src/backend/optimizer/path/costsize.c: /* This apparently-useless vari= able dodges a compiler bug in VS2013: */ > Hence reverting 3154e16. Sure! +1 >> I'm not sure if it's worth removing this one, though: >> = >> src/port/strtof.c: * On Windows, there's a slightly different problem: = VS2013 has a strtof() > Yeah.. I am not completely sure if all the patterns mentioned for > VS2013 apply to Cygwin/Mingw, so keeping it around could be more > beneficial. The comments about that in win32_port.h and cygwin.h only date back to 2019, so it seems unlikely that the situation has changed much. We could try removing HAVE_BUGGY_STRTOF to see if the buildfarm complains, but I wouldn't bet money on that succeeding. What we *do* need to do is update the #if tests and comments to make clear that HAVE_BUGGY_STRTOF is only needed for Mingw and Cygwin, not for any supported MSVC release. regards, tom lane