pgsql: Fix macro-redefinition warning introduced by aeb07c55f.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix macro-redefinition warning introduced by aeb07c55f.
Date: 2026-07-01 17:44:51
Message-ID: E1weyzT-000yyx-2O@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix macro-redefinition warning introduced by aeb07c55f.

Some platforms provide a definition of unreachable() in standard C
headers, leading to a conflict with unreachable() in the new
timezone code. It seems best for our purposes to conform to what
pg_unreachable() does, so #undef away the platform version.

Reported-by: Tristan Partin <tristan(at)partin(dot)io>
Discussion: https://postgr.es/m/DJNDN9UQS9GP.11L4NJ1HHE1ZJ@partin.io

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/85656c1bef4af031f8e9801d927cdaeaaae95566

Modified Files
--------------
src/timezone/private.h | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Masahiko Sawada 2026-07-01 18:43:14 pgsql: Add min() and max() aggregate support for uuid.
Previous Message Tom Lane 2026-07-01 17:27:48 pgsql: btree_gist: fix NaN handling in float4/float8 opclasses.