From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't take the address of flexible array members
Date: Mon, 05 Oct 2026 05:50:56 +0000
Message-ID: <E1xDbbE-00000000N12-0vMq@gemulon.postgresql.org> (raw)
Don't take the address of flexible array members
Apple clang rejects taking the address of a flexible array member that
carries a counted_by attribute. A future patch wants to add that
attribute to two such places. To avoid problems, use the array itself
instead taking its address with &, which yields the same
address. (There are a few more, but they are not candidates for a
counted_by attribute, so they are left alone here.)
Discussion: https://www.postgresql.org/message-id/flat/DKBEBF32QLUA.3L2DJRPUYNKHZ%40partin.io
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/675dd940bc459f3e1748ffcd82c48f24c29b2a80
Modified Files
--------------
src/backend/executor/execParallel.c | 2 +-
src/bin/pg_rewind/filemap.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Don't take the address of flexible array members
In-Reply-To: <E1xDbbE-00000000N12-0vMq@gemulon.postgresql.org>
References: <E1xDbbE-00000000N12-0vMq@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox