| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Tristan Partin <tristan(at)partin(dot)io> |
| 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-10-28 08:04:13 |
| Message-ID: | 4de849f7-8091-4285-8f7a-87c8ffe1ddee@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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.)
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Add-compiler-option-fstrict-flex-arrays-1.patch | text/plain | 8.4 KB |
| v2-0002-squash-Add-compiler-option-fstrict-flex-arrays-1.patch | text/plain | 3.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-10-28 08:04:38 | Re: [PATCH] Remove unused PageIsPredicateLocked() |
| Previous Message | Julien Riou | 2026-10-28 07:57:51 | Re: PROXY protocol support |