Re: anonymous unions (C11)

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-01-21T11:21:55Z
Lists: pgsql-hackers
On 19.01.26 22:10, Álvaro Herrera wrote:
> 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?

Go ahead please.




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]