pgsql: Add missing guard for __builtin_constant_p

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add missing guard for __builtin_constant_p
Date: 2026-05-05 11:52:30
Message-ID: E1wKEKE-000S9X-2U@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add missing guard for __builtin_constant_p

Oversight in commit e2809e3a1. While at it, use pg_integer_constant_p
in master.

Discussion: https://postgr.es/m/CANWCAZbOha-x5MCreQn3TRA56VdKWNMAKMy3fAV1kJSw9Vp4pw@mail.gmail.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6766264262851686481dee4401541ee8cd874c2a

Modified Files
--------------
src/include/port/pg_crc32c.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2026-05-05 11:53:13 pgsql: Add missing guard for __builtin_constant_p
Previous Message Etsuro Fujita 2026-05-05 09:58:36 pgsql: postgres_fdw: Fix handling of abort-cleanup-failed connections.