Re: Making type Datum be 8 bytes everywhere - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Making type Datum be 8 bytes everywhere
Date
Msg-id b16ae4da-a5fe-4c57-b3d7-0ed9f7a95168@eisentraut.org
Whole thread Raw
In response to Re: Making type Datum be 8 bytes everywhere  (Andres Freund <andres@anarazel.de>)
List 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



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Fix tab completion in v18 for ALTER DATABASE/USER/ROLE ... RESET
Next
From: Peter Eisentraut
Date:
Subject: Re: Making type Datum be 8 bytes everywhere