Re: Change copyObject() to use typeof_unqual

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Nazir Bilal Yavuz <byavuz81@gmail.com>
Date: 2026-01-20T15:47:04Z
Lists: pgsql-hackers
Hi,

On 2026-01-20 10:37:35 +0100, Peter Eisentraut wrote:
> (Even MSVC supports it, if we use a slightly newer version than is on CI.
> For example, the new buildfarm member unicorn would support it.)

FWIW, we've recently installed a newer msvc version in the image, we could
switch to that if desired.

Greetings,

Andres



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add some const qualifiers enabled by typeof_unqual change on copyObject

  2. Hardcode typeof_unqual to __typeof_unqual__ for clang

  3. Clean up postgres_fdw/t/010_subscription.pl.

  4. Hardcode override of typeof_unqual for clang-for-bitcode

  5. Make typeof and typeof_unqual fallback definitions work on C++11

  6. Change copyObject() to use typeof_unqual

  7. Fixes for C++ typeof implementation

  8. Support using copyObject in standard C++