Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDD2E-0003nE-KE for pgsql-committers@arkaria.postgresql.org; Mon, 30 Apr 2018 17:56:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fDD2D-0003o5-I9 for pgsql-committers@arkaria.postgresql.org; Mon, 30 Apr 2018 17:56:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDD2D-0003nk-9T for pgsql-committers@lists.postgresql.org; Mon, 30 Apr 2018 17:56:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fDD26-0004NE-N9 for pgsql-committers@lists.postgresql.org; Mon, 30 Apr 2018 17:56:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3UHu6ZH021195; Mon, 30 Apr 2018 13:56:06 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Prevent infinity and NaN in jsonb/plperl transform In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Mon, 30 Apr 2018 17:24:15 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21193.1525110966.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Apr 2018 13:56:06 -0400 Message-ID: <21194.1525110966@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > Prevent infinity and NaN in jsonb/plperl transform So this isn't working on Windows: contrib/jsonb_plperl/jsonb_plperl.c(226): warning C4013: 'isnan' undefined= ; assuming extern returning int [c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.bui= ld\jsonb_plperl.vcxproj] ... .\Release\jsonb_plperl\jsonb_plperl.dll : fatal error LNK1120: 1 unresolve= d externals [c:\pgbuildfarm\pgbuildroot\HEAD\pgsql.build\jsonb_plperl.vcxp= roj] The reason seems to be this kluge in plperl.h: /* stop perl headers from hijacking stdio and other stuff on Windows */ #ifdef WIN32 #define WIN32IO_IS_STDIO /* * isnan is defined in both the perl and mingw headers. We don't use it, * so this just clears up the compile warning. */ #ifdef isnan #undef isnan #endif #endif /* WIN32 */ Looks like the half-life of that hack just expired. What shall we do about it? If you don't have an immediate solution, please revert this commit temporarily, as it's preventing me from making any further progress on the reattach-failure investigation. regards, tom lane