Get rid of anonymous struct
authorJohn Naylor <john.naylor@postgresql.org>
Tue, 9 Apr 2024 09:16:01 +0000 (16:16 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Tue, 9 Apr 2024 09:16:01 +0000 (16:16 +0700)
commitbf183f168c447355ba82151f1c7305368a95c834
tree590aa85888b8356ab8895203647115b1f17de317
parentbaa82b78dc97459b6d2a5843cc77fcf755809269
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
src/backend/access/common/tidstore.c