| From: | "Tristan Partin" <tristan(at)partin(dot)io> |
|---|---|
| To: | "Peter Eisentraut" <peter(at)eisentraut(dot)org> |
| Cc: | "Greg Burd" <greg(at)burd(dot)me>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, "David Geier" <geidav(dot)pg(at)gmail(dot)com> |
| Subject: | Re: Add compiler option -fstrict-flex-arrays=1 |
| Date: | 2026-11-03 05:28:58 |
| Message-ID: | DMLBTHVSZQNK.1HDMHYAJVULH0@partin.io |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed Oct 28, 2026 at 8:04 AM UTC, Peter Eisentraut wrote:
> On 27.10.26 16:51, Tristan Partin wrote:
>> We could define a pg_attribute_strict_flex_array() macro and add it to
>> the entry in WordEntryPosVector1. We can add a comment to the macro
>> indicating how and why it should be used since it'll likely be a little
>> non-obvious, but we could continue to keep bounds checking on
>> WordEntryPosVector1.
>
> Something like in the attached patch 0002?
>
> (Patch 0001 is unchanged.)
Yep, that is exactly what I had in mind.
--
Tristan Partin
PostgreSQL Contributors Team
AWS (https://aws.amazon.com)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-11-03 05:39:42 | Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743) |
| Previous Message | Chao Li | 2026-11-03 05:21:17 | extension_control_path: ignore empty elements and deduplicate directories |