Re: anonymous unions (C11)

Álvaro Herrera <alvherre@kurilemu.de>

From: Álvaro Herrera <alvherre@kurilemu.de>
To: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-09-30T11:44:00Z
Lists: pgsql-hackers
On 2025-Sep-30, Ashutosh Bapat wrote:

> Attached patch fixes those errors for me.

> diff --git a/src/common/cryptohash.c b/src/common/cryptohash.c
> index fc0555d2f99..e8a35c2ec35 100644
> --- a/src/common/cryptohash.c
> +++ b/src/common/cryptohash.c
> @@ -61,7 +61,7 @@ struct pg_cryptohash_ctx
>  		pg_sha256_ctx sha256;
>  		pg_sha384_ctx sha384;
>  		pg_sha512_ctx sha512;
> -	}			data;
> +	};
>  };

Isn't this patch 0015 in Peter's series?

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Saca el libro que tu religión considere como el indicado para encontrar la
oración que traiga paz a tu alma. Luego rebootea el computador
y ve si funciona" (Carlos Duclós)



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]