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: Use correct preprocessor conditional in relptr.h
Date: Sat, 13 Dec 2025 19:07:43 +0000
Message-ID: <E1vUUxy-000ZWF-0p@gemulon.postgresql.org> (raw)

Use correct preprocessor conditional in relptr.h

When relptr.h was added (commit fbc1c12a94a), there was no check for
HAVE_TYPEOF, so it used HAVE__BUILTIN_TYPES_COMPATIBLE_P, which
already existed (commit ea473fb2dee) and which was thought to cover
approximately the same compilers.  But the guarded code can also work
without HAVE__BUILTIN_TYPES_COMPATIBLE_P, and we now have a check for
HAVE_TYPEOF (commit 4cb824699e1), so let's fix this up to use the
correct logic.

Co-authored-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://www.postgresql.org/message-id/CA%2BhUKGL7trhWiJ4qxpksBztMMTWDyPnP1QN%2BLq341V7QL775DA%40mail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/315342ffedf6b81f629c42e87bfaedbcc7211646

Modified Files
--------------
src/include/utils/relptr.h | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)



Message-ID: <E1vUUxy-000ZWF-0p@gemulon.postgresql.org>
Permalink:  ../E1vUUxy-000ZWF-0p@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vUUxy-000ZWF-0p@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: Use correct preprocessor conditional in relptr.h
  In-Reply-To: <E1vUUxy-000ZWF-0p@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