pgsql: Get rid of anonymous struct

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Get rid of anonymous struct
Date: 2024-04-09 09:18:43
Message-ID: E1ru7co-001GbH-Ey@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Get rid of anonymous struct

This is a C11 feature, and we require C99. While at it, go the further
step and get rid of the surrounding union (with uintptr_t) entirely,
as there is currently no use case for this file to access the header of
BlocktableEntry as a uintptr_t, and there are no additional alignment
requirements. The least invasive way seems to be to transfer the old
union name to this struct.

Reported by Pavel Borisov and Andres Freund, per buildfarm member mylodon
Reviewed by Pavel Borisov

Discussion: https://postgr.es/m/CALT9ZEH11NYV8AOzKb1bWhCf6J0H=H31f0MgT9xX+HdqvcA1rw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bf183f168c447355ba82151f1c7305368a95c834

Modified Files
--------------
src/backend/access/common/tidstore.c | 43 ++++++++++++++++++------------------
1 file changed, 21 insertions(+), 22 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-04-09 09:35:13 pgsql: Fix whitespace
Previous Message Kyotaro Horiguchi 2024-04-09 07:43:55 Re: pgsql: With gssencmode='require', check credential cache before connect