pgsql: Fix alignas placement in GinTuple

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix alignas placement in GinTuple
Date: 2026-09-23 07:32:22
Message-ID: E1x9HSo-00000000sjT-21BU@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix alignas placement in GinTuple

Commit 05c4b10fc52 added an alignas specifier, and placed it in the
middle of the declaration, unlike most existing uses, possibly to
avoid the indentation problem recently fixed in commit 884f82ae262.
This placement is valid in C but not in C++, which requires it to be
at the beginning. This results in a warning in g++ and an error in
clang++. Fix by moving it accordingly. The fix for the indentation
problem has been backpatched to support this patch.

Branch
------
REL_19_STABLE

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

Modified Files
--------------
src/include/access/gin_tuple.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2026-09-23 08:41:40 pgsql: Fix concurrent delete handling in MERGE ... WHEN NOT MATCHED BY
Previous Message Amit Kapila 2026-09-23 06:09:13 pgsql: Fix sequence synchronization failure on a concurrent refresh.