Re: Making type Datum be 8 bytes everywhere
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2025-07-31T14:13:10Z
Lists: pgsql-hackers
On 18.07.25 18:26, Andres Freund wrote: > One of these days I should again try the experiment of making Datum into a > struct, to automatically catch omissions of datum <-> native type. Having them > be silent most of the time really sucks. I suspect that if we get the > 64bit-datum-on-32bit-platform code to be warning-free, it'd get a lot easier > to struct-ify Datum. I don't recall the details, but I suspect that all the > varlena macros etc were the problem with that. Patch posted here for demonstration: https://www.postgresql.org/message-id/8246d7ff-f4b7-4363-913e-827dadfeb145%40eisentraut.org
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