Re: Making type Datum be 8 bytes everywhere

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)anarazel(dot)de>, 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-24 11:58:47
Message-ID: CAN55FZ2_=WgRVrvp0aRzxyLS+Gm9c5L7HrVyXXXmEWo=M8cQbw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Thank you for working on this!

On Wed, 23 Jul 2025 at 22:00, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> 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.

I did a basic pgbench benchmark on a 32-bit build and there is no change.

$ pgbench -i -s 100 test
$ pgbench -c 16 -j 16 -b $type -T 150 test

TPS results are:

select-only:
master: 215654
patched: 215751

simple-update:
master: 4454
patched: 4446

tpcb-like:
master: 4094
patched: 4128

--
Regards,
Nazir Bilal Yavuz
Microsoft

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ajin Cherian 2025-07-24 12:15:12 Re: 024_add_drop_pub.pl might fail due to deadlock
Previous Message Bertrand Drouvot 2025-07-24 11:51:59 Re: Adding wait events statistics