From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Map pg_attribute_counted_by() to _Field_size_() under MSVC
Date: Sat, 03 Oct 2026 21:27:59 +0000
Message-ID: <E1xD7Gx-00000000CCk-05Fu@gemulon.postgresql.org> (raw)
Map pg_attribute_counted_by() to _Field_size_() under MSVC
MSVC has no counted_by attribute, but its source annotation
language (SAL) has _Field_size_(), which states the same property: the
field is a buffer whose writable size in elements is given by the
named expression.
MSVC's static analyzer (/analyze) will make use of the information.
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/9dcaea6edc8c3f8a658ff788c94b6a896ae254af
Modified Files
--------------
src/include/c.h | 10 ++++++++++
1 file changed, 10 insertions(+)
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: Map pg_attribute_counted_by() to _Field_size_() under MSVC
In-Reply-To: <E1xD7Gx-00000000CCk-05Fu@gemulon.postgresql.org>
References: <E1xD7Gx-00000000CCk-05Fu@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