pgsql: Further fix extended alignment for older g++.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Further fix extended alignment for older g++.
Date: 2026-01-29 21:16:50
Message-ID: E1vlZNi-0002m3-0N@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Further fix extended alignment for older g++.

Commit 6ceef9408 was still one brick shy of a load, because it caused
any usage at all of PGIOAlignedBlock or PGAlignedXLogBlock to fail
under older g++. Notably, this broke "headerscheck --cplusplus".
We can permit references to these structs as abstract structs though;
only actual declaration of such a variable needs to be forbidden.

Discussion: https://www.postgresql.org/message-id/3119480.1769189606@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/include/c.h | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2026-01-29 21:49:18 pgsql: bufmgr: Allow conditionally locking of already locked buffer
Previous Message Jeff Davis 2026-01-29 18:27:02 pgsql: Fix theoretical memory leaks in pg_locale_libc.c.