Re: Making type Datum be 8 bytes everywhere
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter@eisentraut.org>, Andres Freund <andres@anarazel.de>, pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2025-07-31T23:28:47Z
Lists: pgsql-hackers
On Thu, Jul 31, 2025 at 10:27:37AM -0400, Tom Lane wrote: > Peter Eisentraut <peter@eisentraut.org> writes: >> In my patch, I just added the missing DatumGetPointer() calls, which >> seemed easy enough. > > I had an earlier patch version that also did that, but it seemed > kind of verbose to me: adding "_D" is much shorter than adding > "DatumGetPointer()", and fewer parens seems good for readability. I have mixed feelings about that, but as long as one is easily able to detect that they should not pass a Datum. At the end, I'm kind of OK-ish with the addition of the _D flavors to have a shortcut for the VARDATA/DatumGetPointer() patterns, as an option. So I'd put +0.5. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Avoid faulty alignment of Datums in build_sorted_items().
- 09036dc71c68 19 (unreleased) landed
-
Grab the low-hanging fruit from forcing USE_FLOAT8_BYVAL to true.
- ee54046601de 19 (unreleased) landed
-
Grab the low-hanging fruit from forcing sizeof(Datum) to 8.
- 6aebedc38497 19 (unreleased) landed
-
Make type Datum be 8 bytes wide everywhere.
- 2a600a93c7be 19 (unreleased) landed
-
Mop-up for Datum conversion cleanups.
- 665c3dbba497 19 (unreleased) landed