Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHZDe-0034Aw-DU for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Dec 2023 00:53:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rHZDb-00FPsJ-55 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Dec 2023 00:53:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHZDZ-00FPsA-Ey for pgsql-bugs@lists.postgresql.org; Mon, 25 Dec 2023 00:53:18 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHZDS-00C39O-0U for pgsql-bugs@lists.postgresql.org; Mon, 25 Dec 2023 00:53:16 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DDC5C5C019E; Sun, 24 Dec 2023 19:53:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 24 Dec 2023 19:53:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1703465587; x=1703551987; bh=EWvbQrvi3X SseIcQwDrl2GIFCiUBM2pRjKtl72y5j90=; b=1sW4PR52lIE5u0TqspOAByh9qi xkyZ9kWpMXkAj3D8eTg0D8T95/016zlFo/PJC1noChNsyECojj9mTVBUm7dudBIW wXRDiYasH2AHoyngso4Uc4mtDiACs8e66va6hEQYFsn4smfn1YBQBBm2PL7gu+dk Xs68uGjoKD0dizzyPo8nQCRxS7I8GR9TXkaR9nppkwJ3r1tgEWzzZfAQt1UufDdL 5bERcSzqM/vPD3iMqzYyMf0tC6sAM3H3x81pwntzHKOlwpzbUaZTFsIumeEkneaL 1Yho3EtKF3htyfgw93FkP4r+KfNQJiukzKKSW25ux46WMnL5NMGozoiFDsEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1703465587; x=1703551987; bh=EWvbQrvi3XSseIcQwDrl2GIFCiUB M2pRjKtl72y5j90=; b=CcUPondKnlOuq6KrHVVgYBQ28vEFpQ05HZZwK26QNpHU l1g+XftYU6DlY2N4iJYqDp8uqJ0+jSNnrtp+Sbtbn2eBhlLgHuuOHOhBi7gguJra mchRc2IfjePkp6hRmrYZpI0tfLyHBiQhrlThh6hX3YkBDO6fOqjOgAxYSIR0yy9/ MFCNaDEqA/14wNS3I1FxHw+X2MNuW3NbuOeGKsdFcUpmX/BzIzNoesUjqUndzb7U h63wwAobbN/Vgk0pvGC1SgHG1WYXIl8eNvycc3iJup5q9iCGU7FunSMx1AzwIGQ4 Z2TcJuOhoAlehSV/rnjrZyhtuJht/z97lIrOAjGEmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddvvddgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Dec 2023 19:53:05 -0500 (EST) Date: Mon, 25 Dec 2023 09:52:53 +0900 From: Michael Paquier To: Tom Lane Cc: "Jonathan S. Katz" , David Rowley , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18240: Undefined behaviour in cash_mul_flt8() and friends Message-ID: References: <18240-c5da758d7dc1ecf0@postgresql.org> <2171714.1702307153@sss.pgh.pa.us> <2433182.1702391878@sss.pgh.pa.us> <3453263.1702739958@sss.pgh.pa.us> <1673413.1703442075@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zpsp3DOeX6ihaF7i" Content-Disposition: inline In-Reply-To: <1673413.1703442075@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --zpsp3DOeX6ihaF7i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 24, 2023 at 01:21:15PM -0500, Tom Lane wrote: > "Jonathan S. Katz" writes: >> I'm of the strong opinion that we should get rid of money. I personally= =20 >> haven't encountered it in the wild -- I'm sure it's there, but it seems= =20 >> limited -- and most apps that seriously deal with money will either user= =20 >> either "numeric" or an integer-based type. >=20 > Yeah, maybe we should just do it. I was pleasantly surprised by how > little push-back we got from nuking the 32-bit datetime types a few > releases ago; perhaps this one would likewise not have much of a > constituency. Yeah, that's hard to say. Perhaps it would a good idea to ask more widely how much people have been relying on that and how large these data sets are. Another thing that we could attempt is doing something about the the table rewrites on type changes to require an EOL. Like more CONCURRENTLY flavors in ALTER TABLE? >> I am sensitive to the upgrade piece, as we don't want someone relying on= =20 >> that behavior to be indefinitely stuck. But perhaps part of the=20 >> deprecation plan is to just keep the casts around[1] for a few releases,= =20 >> without exposing the type, and prevent new creations of the type? >=20 > I don't really see a way to do that, especially not if we don't want > to put a large amount of effort into it. We can certainly make > pg_upgrade reject "money" columns, and tell people they need to > rewrite those before they upgrade not after. At least the infra to be able to achieve that should be here. -- Michael --zpsp3DOeX6ihaF7i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmWI0mUACgkQnvQgOdby QH3iqQ//ewI8asVG8+cNDIMm/ipEaReQIYnhAW0rLAIxo8UvqipNX6LdddPJm6/q xTDHC0jYi/NESrMMo8RRx9LcdH+oh0v/OJRhMmeWi94bPVZn+JFNt77au6Ftbqb6 QoPjuGlCls8pjz4ONQnE19EYLacTUCiZvou8WLIYKN8eoltlR+REf8wiPwKbIp8m P2jTCVRvPCf+NF3pTZcNice3iujXXq+ddswIsOtkgAIJr9DBM0/LuzrSYL1WSNKj BPvC5lFHG4e7O2dFgLvHWUxvlzPdRfuvj6oyzDkoy5VTa5I52n9LL1I5Axe2ygvb GLdybhykQ4cepWM6HB7txez4OjW9PsX3Uh+iSA2GXKK83O1ls1J0qzfGu86PuDHq GBI4/IzLxMt8lleeNeETgvBRtXiB2tuE7w8oBYKUhZB7vlEY7E9UYVgchcWKHVlP azdbxelZsyeRe6iXIQvfgAyCkR04zqVEVsMxU7sF6ZL6bluKFV7EbI7q46wTgnM2 rgJ2DxpTyCd6SCSfnhJd8LbOLuYR39yXQrsL1VnQXrFEahXOoMSC9KX1INMPhpmF 2qnLkfdsOQGaJWU1rMA4eVs3owbS/dZTm3A+U0QbYYWOFV45HbAf9+PAQdNH5rTk k09bz5/gT9mn7S0QmL+fx0rXk/nqXKbT0TuDzR7InNxN5znmRQ0= =03L6 -----END PGP SIGNATURE----- --zpsp3DOeX6ihaF7i--