Re: Use T_IntList for uint32 - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Use T_IntList for uint32
Date
Msg-id 20200901055635.GI3511@paquier.xyz
Whole thread Raw
In response to Re: Use T_IntList for uint32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Sep 01, 2020 at 01:27:15AM -0400, Tom Lane wrote:
> I've occasionally wondered about having exactly two physical List
> implementations, one for 32-bit payloads and one for 64-bit payloads, and
> then putting a trivial macros-or-static-inlines layer in front of that
> that uses casts to supply variants for pointers, signed ints, unsigned
> ints, etc etc.  There hasn't yet been enough reason to pursue doing it
> though.

FWIW, moving pg_list.h & co to have just two list implementations, based
on say bits32 and a new bits64 is something I was thinking about while
reading this thread.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: 回复:how to create index concurrently on partitioned table
Next
From: Junfeng Yang
Date:
Subject: Is it possible to set end-of-data marker for COPY statement.