| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Map pg_attribute_counted_by() to _Field_size_() under MSVC |
| Date: | 2026-10-03 21:27:59 |
| Message-ID: | E1xD7Gx-00000000CCk-05Fu@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)partin(dot)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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Guo | 2026-10-04 03:11:21 | pgsql: Set hasSubLinks when expanding a whole-row join alias reference |
| Previous Message | Tom Lane | 2026-10-03 18:45:02 | pgsql: Fix lcov duplicate directory specification in non-VPATH builds. |