Re: get rid of Pointer type, mostly - Mailing list pgsql-hackers

From Robert Haas
Subject Re: get rid of Pointer type, mostly
Date
Msg-id CA+Tgmobo9ZMC0h1Z1Te9whf7q3LN7wUkzFLyuxfMZ4dyTNqKnw@mail.gmail.com
Whole thread Raw
In response to Re: get rid of Pointer type, mostly  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: get rid of Pointer type, mostly
List pgsql-hackers
On Mon, Nov 24, 2025 at 11:09 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > The second is getting rid of uses of Pointer for variables where you
> > might as well use void * directly.  These are actually not that many.
>
> ... but not of that.  In particular, I think it's just fine if
> DatumGetPointer and PointerGetDatum take and return Pointer.

What's your objection?

(I don't have a considered opinion on this particular point, but in
general I've found that using Pointer seems to make life worse rather
than better.)

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: 河田達也
Date:
Subject: [Proposal] Adding TRIM_SPACE option to COPY
Next
From: "Greg Burd"
Date:
Subject: Re: [PATCH] Fix ARM64/MSVC atomic memory ordering issues on Win11 by adding explicit DMB ​barriers