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 1jkjIw-00080L-HE for pgsql-committers@arkaria.postgresql.org; Mon, 15 Jun 2020 07:13:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jkjIv-0003FL-EJ for pgsql-committers@arkaria.postgresql.org; Mon, 15 Jun 2020 07:13:13 +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 1jkjIu-0003FE-Jy for pgsql-committers@lists.postgresql.org; Mon, 15 Jun 2020 07:13:13 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkjIr-0005ga-8u for pgsql-committers@lists.postgresql.org; Mon, 15 Jun 2020 07:13:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F17AA581; Mon, 15 Jun 2020 03:13:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 15 Jun 2020 03:13:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=IDFvFfvF8EluIiNaZGbaNN98dRj wprryQRsgWLTQB8M=; b=r+FJ5ZM03f4xdiPtFZvhYiGcfg9K8YKPcvYUfiF4Knt EMWBI9dvr2HmkV31x2Aqi7xJIdSSF9ba+gYsj+wemajpSQr00HPNal5iQ3gW9+6n SXCQ0ASivERqDVIt/SMlFmwG5nAn6ZW05Tqb5bFtuO4PpZQo1APBnR67ca5FfRL5 CiiuMi+FXwjb6nG5hnnSc8NK/wq6Gug4szQMWRVw56SvrRp8fYLPAfLVO9d6Cwcg Szx3RSJCtU8FdYteaUGAHUVNB0gzYX8YKevYMaxAqg2O0ss2axfYzJ8xVtFMLisv n0aoDYBRldDPzcR+BQk6qjHm48Wfdb+KYP2QxM4sUrg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IDFvFf vF8EluIiNaZGbaNN98dRjwprryQRsgWLTQB8M=; b=LzvDRdYU9WrZaqd+Q+miyj +9fJ2NvGHhfokqRRH77/MpsSINp8f755Sy7qEsNNBtaJZ2Rh8gqWHdOi2KBY27cs zM1cr1Gar/vZ26kfBYg6nQWLBR4BS9r1cUXhQHAG45MADVc9T2ofwYkNaduUk18T UI0ht01vqEyR3APwYvdnCu5c0y35U8XScPGDDguLbycQAH4ZGQHNiFFFq4nwrLtC IPmVAuZ7T3Y36qefmPdXdRyqKktMmcODYO6GIE6fO1DKDTryK7Sq8eWH4WleF5yz DSSwZvmkQvEQ/sDe898gZVe7ApFbc1yMbpyVk9RK3fXK65PN1y2YgqTaF1z/PjDw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhepff fhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepiefhteeuveektdfhhfduteekkedvvdeuhfevgeeileehheejfedtueeffffhuddt necuffhomhgrihhnpehophgvnhhgrhhouhhprdhorhhgnecukfhppeduuddurddutddvrd dukedtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 4550C3060FE7; Mon, 15 Jun 2020 03:13:05 -0400 (EDT) Date: Mon, 15 Jun 2020 16:13:02 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix behavior of exp() and power() for infinity inputs. Message-ID: <20200615071302.GI52676@paquier.xyz> References: <20200615034259.GD52676@paquier.xyz> <1095749.1592194252@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ibq+fG+Ci5ONsaof" Content-Disposition: inline In-Reply-To: <1095749.1592194252@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ibq+fG+Ci5ONsaof Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 15, 2020 at 12:10:52AM -0400, Tom Lane wrote: > Yeah, and presumably Noah's other AIX critters will fail too. I'm curious > to see what damselfly will say; that's the other old-ish platform we have > in the farm. Once that reports in, I'm intending to push the attached or > something close to it. This is more or less the same thing for pow() as > the current patch did for exp(): handle Inf cases manually and then > simplify the error checks in the normal path. Thanks. What you have here looks consistent with what POSIX says: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pow.html -- Michael --ibq+fG+Ci5ONsaof Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl7nH34ACgkQnvQgOdby QH30zg/+MiBbC3HcQWdGwOrOFHkPLGyjVTLlFvKJWEo/9XPT29WD9COceSYpQkJt CCsdcDJDfK8SRbNOM99z0FvvPg0SMSOK3Fk6CcU3oUhJkRy4FZBoURKJPu0OS+JM iihx6Wr69CUnI53gTf8AA87jGRs2oUCYOaeTnga7dJ2Kb1au9HlFVA91bU4dXXzt xu25sxaMOkgwJVj38qYxiCh04LwSphYdaZkol/Xo0SI1i1aX/1Bvjngk4WmTXOLK rWNwhXerTgNO1DgujH08rjlXFQMAFCnwdn24FbiiPwNyNr7LnMi3xstUkvVIJpWh AZKSCFHIDuBuSRLnX/MdMIgKV6DF45A+93rajjRw1Ks/ss94k/7uV8kflPey1TrP gf/m/7mPqyw/rdfrbrrLLrkmc4bwK/UixgJXc/lEFcQiA2JwaDOzJeVYZJ5YnyRY VlpR7Nve+T88iSk9S6NEjGxD1lBCn6K8tLI1DcI5SrpgYRxNTDvCV9V2WKMGfwtp NbA5DMelMp/+v357oXjbzzs5aHflRP9mdBimeaLtFAf4CdXdCdkwWt7pJjh1xwdo 6c3sQQozvbsgNrWS+wqVqtfE7+ZWFODx7WF8n5rx40cYNwTi+/gdCOoApCl9xhkG vLWpyUCUt5JpO8f1Zqht9DnNoo1fXn4x0HpZmSzG39YVg5psVGE= =znCN -----END PGP SIGNATURE----- --ibq+fG+Ci5ONsaof--