Re: Making type Datum be 8 bytes everywhere

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Making type Datum be 8 bytes everywhere
Date: 2025-07-31 14:30:44
Message-ID: 74b5dcd5-a414-4a26-a2bf-9fc184cbd92c@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 18.07.25 02:09, Tom Lane wrote:
> The attached patch switches to 8-byte Datums everywhere, but
> doesn't make any effort to remove the now-dead code.

Is the plan to support only exactly Datums of size 8, or Datums of size
at least 8?

There are some optimistic conditionals like

#if SIZEOF_DATUM >= 8

I don't expect it to work right now with larger sizes, but maybe it
should? (uuid pass-by-value!?!)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Burd 2025-07-31 14:44:22 Re: Convert varatt.h macros to static inline functions
Previous Message Tom Lane 2025-07-31 14:27:37 Re: Making type Datum be 8 bytes everywhere