Re: Make copyObject work in C++

From: "Jelte Fennema-Nio" <postgres(at)jeltef(dot)nl>
To: "Peter Eisentraut" <peter(at)eisentraut(dot)org>
Cc: "PostgreSQL Hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Thomas Munro" <thomas(dot)munro(at)gmail(dot)com>
Subject: Re: Make copyObject work in C++
Date: 2026-02-27 16:40:21
Message-ID: DGPW5WCFY7WY.1IHCDNIVVT300@jeltef.nl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri Feb 20, 2026 at 10:47 AM CET, Jelte Fennema-Nio wrote:
> Makes total sense, I didn't realise decltype and typeof were not quite
> the same thing. Attached is an updated patchset that does that.

Same patchset as before, but now also including a C++ fallback for
__builtin_types_compatible_p.

Attachment Content-Type Size
v10-0001-Support-using-copyObject-in-C.patch text/x-patch 7.6 KB
v10-0002-Use-typeof-everywhere-instead-of-compiler-specif.patch text/x-patch 2.3 KB
v10-0003-Make-unconstify-and-unvolatize-use-StaticAssertV.patch text/x-patch 1.7 KB
v10-0004-Add-C-version-of-__builtin_types_compatible_p.patch text/x-patch 3.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2026-02-27 16:43:39 Harden internal_load_library() against transient errors
Previous Message David G. Johnston 2026-02-27 16:28:02 Re: DOCS - Add introductory paragraph to Getting Started chapter