Replace __builtin_types_compatible_p with _Generic

Edit
ID 6597
Title Replace __builtin_types_compatible_p with _Generic
CI (CFBot) Summary
Stats (from CFBot) Patch version: v3, Patch count: 1, First patch: +62−77, All patches: +62−77
Tags Modernization Refactoring Only
Created 2026-03-18 10:53:52
Last modified 2026-03-18 10:54:08 (4 hours ago)
Latest email 2026-03-18 10:17:13 (4 hours ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Needs review
Target version
Authors Thomas Munro (macdice), Jelte Fennema-Nio (jeltef)
Reviewers Become reviewer
Committer
Links
Emails
Type assertions without GCC builtins
First at 2025-11-15 00:06:42 by Thomas Munro <thomas.munro at gmail.com>
Latest at 2026-03-18 10:17:13 by "Jelte Fennema-Nio" <postgres at jeltef.nl>
Latest attachment (v3-0001-Replace-__builtin_types_compatible_p-with-_Generi.patch) at 2026-03-18 10:17:13 from "Jelte Fennema-Nio" <postgres at jeltef.nl>
    Attachment (v3-0001-Replace-__builtin_types_compatible_p-with-_Generi.patch) at 2026-03-18 10:17:13 from "Jelte Fennema-Nio" <postgres at jeltef.nl> (Patch: Yes)
    Attachment (v2-0001-Add-pg_expr_has_type_p-for-type-check-assertions.patch) at 2025-12-09 14:45:43 from "Jelte Fennema-Nio" <postgres at jeltef.nl> (Patch: Yes)
    Attachment (vPE-0001-Use-correct-preprocessor-conditional-in-relptr.h.patch) at 2025-11-19 18:44:20 from Peter Eisentraut <peter at eisentraut.org> (Patch: Yes)
    Attachment (0001-Add-pg_expr_has_type_p-for-type-check-assertions.patch) at 2025-11-15 00:06:42 from Thomas Munro <thomas.munro at gmail.com> (Patch: Yes)
History
When Who What
2026-03-18 10:54:08 Jelte Fennema-Nio (jeltef) Changed tags to Modernization, Refactoring Only
2026-03-18 10:53:52 Jelte Fennema-Nio (jeltef) Attached mail thread CA+hUKGL7trhWiJ4qxpksBztMMTWDyPnP1QN+Lq341V7QL775DA@mail.gmail.com
2026-03-18 10:53:52 Jelte Fennema-Nio (jeltef) Created patch record
Edit