Re: anonymous unions (C11)

Álvaro Herrera <alvherre@kurilemu.de>

From: Álvaro Herrera <alvherre@kurilemu.de>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-01-19T21:10:25Z
Lists: pgsql-hackers

Attachments

On 2025-Sep-23, Peter Eisentraut wrote:

> Here is another patch set to sprinkle some C11 features around the
> code.  My aim is to make a little bit of use of several C11 features
> as examples and encouragement for future code, and to test compilers
> (although we're not yet at the point where this should really stress
> any compiler).

I was going over patch [1] today and came across the union in
relopt_value.  Vaguely remembering this thread, I patched it out
(attached) ... and now that I come here to post it, I realize that it's
probably identical to your patch 0009 here.

Would you push it or can I?

[1] https://postgr.es/m/4047390.3Lj2Plt8kZ@thinkpad-pgpro

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/

Commits

  1. Make some use of anonymous unions [reloptions]

  2. Make some use of anonymous unions [libpq-oauth]

  3. Make some use of anonymous unions [DSM registry].

  4. Make some use of anonymous unions [pg_locale_t]

  5. Make some use of anonymous unions [pgcrypto]

  6. Make some use of anonymous unions [plpython]

  7. Make some use of anonymous unions [reorderbuffer xact_time]