Re: get rid of Pointer type, mostly

David Geier <geidav.pg@gmail.com>

From: David Geier <geidav.pg@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>, Chao Li <li.evan.chao@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-12-08T11:27:19Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove no longer needed casts from Pointer

  2. Remove no longer needed casts to Pointer

  3. Change Pointer to void *

  4. Don't rely on pointer arithmetic with Pointer type

  5. Use more appropriate DatumGet* function

  6. Remove useless casts to Pointer

On 08.12.2025 12:14, Peter Eisentraut wrote:
> I was planning to proceed with Dagfinn's patch set.  Here is what is
> currently remaining of the patch series.  I haven't fully processed
> everyone's comments in this thread, so they might not be reflected in
> these patches.
Dagfinn's patch set turns Pointer into void *. I thought we had agreed
to use something like GinExtraPointer in the GIN code (see my patch set).

Either way is fine by me. It just seemed like the majority of commenters
where in favor of keeping some type in the GIN code for readability.
> 
> There is some interference from the changes from palloc to
> palloc_object/_array/etc., and I was also trying to figure out what to
> do with the commented out code, hence the delay.
Understood.

--
David Geier