Re: anonymous unions (C11)

Joel Jacobson <joel@compiler.org>

From: "Joel Jacobson" <joel@compiler.org>
To: "Peter Eisentraut" <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-09-23T10:16:11Z
Lists: pgsql-hackers
On Tue, Sep 23, 2025, at 11:38, 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).

Nice, didn't know about this C11 feature.

I've eyeballed the entire output of `git diff --word-diff-regex=.` and can't see any oddities.

I've also run the full test suite and it passes.

/Joel



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]