pgsql: Write pg_attribute_counted_by() in front of the type - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Write pg_attribute_counted_by() in front of the type
Date
Msg-id E1xCbFG-000000000bl-22LO@gemulon.postgresql.org
Whole thread
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Use the relation map's index when searching deleted tuples seque
Next
From: Amit Langote
Date:
Subject: pgsql: Remove batching from RI fast-path checks