From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com> |
Subject: | Re: Making type Datum be 8 bytes everywhere |
Date: | 2025-07-23 19:00:04 |
Message-ID: | 1353250.1753297204@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2025-07-18 13:24:32 -0400, Tom Lane wrote:
>> Andres Freund <andres(at)anarazel(dot)de> writes:
>>> One class of complaints is about DatumGetPointer() and
>>> PointerGetDatum() casting between different sizes:
>> We might be able to silence those with intermediate casts to uintptr_t,
>> perhaps?
> Yep, that does the trick.
Cool, thanks for checking.
>>> I've not looked into the performance consequences. We probably
>>> should at least try to measure that, though I'm not sure what
>>> our threshold of pain would be for deciding not to do this.
> The hard bit would be to determine what workload to measure. Something like
> pgbench probably won't suffer meaningfully, there's just not enough passing of
> values around.
I'm disinclined to put in a huge amount of effort looking for the
worst case. We established long ago that we weren't going to
optimize for 32-bit anymore. So as long as this doesn't completely
tank performance on 32-bit, I'm satisfied. I'd almost say that
if standard pgbench doesn't notice the change, that's good enough.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Lakhin | 2025-07-23 20:00:00 | Re: [Buildfarm:84] Re: stats.sql might fail due to shared buffers also used by parallel tests |
Previous Message | Peter Geoghegan | 2025-07-23 18:16:09 | Re: Showing primitive index scan count in EXPLAIN ANALYZE (for skip scan and SAOP scans) |