pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change Pointer to void *
Date: Wed, 03 Dec 2025 09:35:00 +0000
Message-ID: <E1vQjGG-002ZG8-0b@gemulon.postgresql.org> (raw)

Change Pointer to void *

The comment for the Pointer type said 'XXX Pointer arithmetic is done
with this, so it can't be void * under "true" ANSI compilers.'.  This
has been fixed in the previous commit 756a4368932.  This now changes
the definition of the type from char * to void *, as envisaged by that
comment.

Extension code that relies on using Pointer for pointer arithmetic
will need to make changes similar to commit 756a4368932, but those
changes would be backward compatible.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/4154950a-47ae-4223-bd01-1235cc50e933%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1b2bb5077e9e9deac60a3e92e742465e7bcd3a21

Modified Files
--------------
src/include/c.h | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)



Message-ID: <E1vQjGG-002ZG8-0b@gemulon.postgresql.org>
Permalink:  ../E1vQjGG-002ZG8-0b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQjGG-002ZG8-0b@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Change Pointer to void *
  In-Reply-To: <E1vQjGG-002ZG8-0b@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox