Re: Datum as struct

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Datum as struct
Date: 2025-08-09 12:23:34
Message-ID: 49da5756-cdf6-41b8-b6d1-5e4c8cb59680@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 08.08.25 22:30, Andres Freund wrote:
> One thing that would be an interesting follow-up would be to make the struct
> not just carry the datum, but also the type of the field, to be filled in by
> tuple deforming and the *GetDatum() functions. Then we could assert that the
> correct DatumGet*() functions are used. I think that'd allow us to detect a
> rather large number of issues that we currently aren't finding

That would make Datum >=9 bytes? Is that something we would need to
worry about in terms of performance?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mihail Nikalayeu 2025-08-09 12:55:00 Re: Adding REPACK [concurrently]
Previous Message Joe Conway 2025-08-09 11:45:16 Re: Making type Datum be 8 bytes everywhere