From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Write pg_attribute_counted_by() in front of the type
Date: Fri, 02 Oct 2026 11:16:06 +0000
Message-ID: <E1xCbFG-000000000bl-22LO@gemulon.postgresql.org> (raw)
Write pg_attribute_counted_by() in front of the type
This is technically the more correct position according to C23,
although in practice compilers are relaxed about this. It also opens
us up to supporting MSVC's _Field_size_() in the future, which is a
similar construct.
This requires adding pg_attribute_counted_by to the list of
declaration attributes in pgindent, so that pgindent doesn't mess it
up.
Author: Tristan Partin <tristan@partin.io>
Discussion: https://www.postgresql.org/message-id/flat/DKBEBF32QLUA.3L2DJRPUYNKHZ%40partin.io
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6f3bdadaadc4692050ca20dff53d3890088b9272
Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 2 +-
src/tools/pgindent/pgindent | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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: Write pg_attribute_counted_by() in front of the type
In-Reply-To: <E1xCbFG-000000000bl-22LO@gemulon.postgresql.org>
References: <E1xCbFG-000000000bl-22LO@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