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.96) (envelope-from ) id 1wIJwh-007yfX-1T for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Apr 2026 05:28:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wIJwe-0066Uj-0q for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Apr 2026 05:28:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wIJwd-0066Ua-36 for pgsql-hackers@lists.postgresql.org; Thu, 30 Apr 2026 05:28:15 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wIJwb-00000003veH-3WQP for pgsql-hackers@postgresql.org; Thu, 30 Apr 2026 05:28:15 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6EB1D7A0065; Thu, 30 Apr 2026 01:28:11 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Thu, 30 Apr 2026 01:28:11 -0400 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=1777526891; x=1777613291; bh=CLTpaORPVd 2n0kXvYzxlUT+qRgyPA1o3g3GY1vV52h8=; b=lR9Q9aqZsYR/fM+8NEkIVPcw9C 4Q9zDxUjSxtms3aw4kK2Bsb17jc7pdGO8KGhZIumjj6/TOQY3pLK1uHsABOW1vEM KYfy6rKZc0PKmh8qqDfGq2Qe23ISgZU4TuLV+hQNMJvkTwcG3y4rtOueaSRHHJc8 T23miORIi37dwNfFzSQGiw97tayLLCmxogHjqBIyR4rZ/KQi0MncdLbI1p85SzQ2 88mE/Ciw1CSgB5kwEPGcLn9O4+AAyo31UE3lEozRo8AXvj6/feb8EWDzCbFhsnpv i7lwjE8yWYcDw+k2RRh7wT/KrHNm9nKVwNtX41L7KQaSkWP9SBxoPax6MCMQ== 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-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1777526891; x=1777613291; bh=CLTpaORPVd2n0kXvYzxlUT+qRgyPA1o3g3G Y1vV52h8=; b=QQ5ucddJgf4cAVjsEt9SU06YGgSd26UtbsOgmeGkoSB2cvXGeDj du0Cu7DkodyoEj/L6rFlvWEdUAT06MHccRBnu9unoSeJur87Rex6cAatDtRvD3Ng AuoJmXyvX/zwtgNMfjKFkFRe0PiUUn98BvGIkVgjAuXIN87H8DPY1QkJmLu6KNMX Qorhm0eo+yOx8u7CdORA7SzjnoW6Frp+Aqmcn89pb7mbTKf5jQ5aoORDfHHkLnrH x1mNUGGTrQe4GOKJkIYSbMoALFquRLGXwS3Vbo2bDtE3wOFUJ11Q42invpjDMj3J 9BjcX5OMef8T0CidNSAAovXMap3QiEcZG8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekieegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeelpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpvghtvg hrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegrlhgvkhhsrghnuggvrhes thhighgvrhgurghtrgdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehrvghshhhkvghkihhrihhllhes ghhmrghilhdrtghomhdprhgtphhtthhopegughhrohiflhgvhihmlhesghhmrghilhdrtg homhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohep hhhlihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopehnrghthhgrnhgusghoshhsrg hrthesghhmrghilhdrtghomhdprhgtphhtthhopehmvghlrghnihgvphhlrghgvghmrghn sehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Apr 2026 01:28:08 -0400 (EDT) Date: Thu, 30 Apr 2026 14:28:04 +0900 From: Michael Paquier To: Peter Eisentraut Cc: Aleksander Alekseev , pgsql-hackers , Kirill Reshke , David Rowley , Tom Lane , Heikki Linnakangas , Nathan Bossart , melanieplageman@gmail.com Subject: Re: Define DatumGetInt8 function. Message-ID: References: <7f39480a-4b7a-4a51-a9ec-d1189b44432d@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7cN61zPzngsQLGgx" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --7cN61zPzngsQLGgx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 28, 2026 at 02:13:31PM +0900, Michael Paquier wrote: > In short, it took me some time to put some order into all that, > finishing with the attached patch set. 0001 is the minimum for v19, > that reverts 6dcfac9696cb so as we have more *GetDatum() matching with > the types in the SQL functions. That would take care of the open item > on top of my head. This was not completely right after a second look. 6dcfac9696cb did not get things completely wrong, either, the brin and gist parts of the changes were right. I have undone the incorrect bits for now to address the open item. > 0002 is a set of fixes that I have spotted while investigating this > set of issues in depth. These spots are actually wrong, some of them > for a long time. I would be slightly tempted to do something about > these in v19 rather than wait for v20, as these are somewhat latent > bugs, to have more consistency across the board. Has anybody from the > RMT an opinion to offer? There is not much urgency in it, still.. > Added the RMT in CC for opinions. This deserves a different discussion, unrelated to DatumGetInt8(). I'll post that on a separate thread, for v20. -- Michael --7cN61zPzngsQLGgx Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmny6GQACgkQnvQgOdby QH3U5xAAnAIy9ZawoN+07HK1PTpL9ZkYEeZlyzURHCXW55zvQbo4RruGM+S87rSi Wmc4zSu+QUnDwm9Y0we/LC1AwuJ5Bs4IBAdn9eekVh3iJXqUYUKcu8LfUW2IhxKO Q0+6o/ItVskjHXU9tWCpIiLbBsr+ZpfkikeTA7r/cBxJB+u3qVHoLOCfO4XxHw5k kEsYiCUYQ2amZSz2eY/YZV4FMZr8UiEnET16FeHn8XUy88FmbOPo3FWJJJvf1KTE 7GK3ayqV4pgaD62nmf/Y1xDmIMJOJ0Q7WSVS2wfW4Dus82CiL/B8kFBqdlAFWsEB AMTawII9c3Qit9LS+8MSDFpUr9112DZYcnUYUEX9qCkc6Do0/3SB0ab0c/unQ/A9 CSEpKuePROHFAykGTP0ndyAzt/ccgKa+Rw94pXV38WtcnEsKoTQE0P1yopnt6QNd TYTI4svpX8q0waClTggEy58n0GLUtO4PrlJ07rkvQMrmGNykRH8cPlnewDlqEmci ROw0GBD47E48i3+p2V52/55WBfzVq8KvbTMJvG42zmsDYGHfMGR/7vMyvaYAA3t3 Kruu2p0yjmjR5OjS2le4U96vGh1xSOrKvyODQY1dKwqfadaNZuTJBciL4ApESO/1 iFlqTybLSNjG3K+wJB+ZF33s8DbV1OmuPNe8JxAkNZP8jVnMLhE= =EkdT -----END PGP SIGNATURE----- --7cN61zPzngsQLGgx--