pgsql: Add static assertion ensuring sizeof(ExprEvalStep) <= 64 bytes

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add static assertion ensuring sizeof(ExprEvalStep) <= 64 bytes
Date: 2023-02-22 22:47:05
Message-ID: E1pUxtA-000CxD-N3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add static assertion ensuring sizeof(ExprEvalStep) <= 64 bytes

This was previously only documented in a comment. Given the size of the
struct, it's not hard to miss that comment. As evidenced by the commits
leading up to fe3caa14393, 67b26703b41.

It's possible, but not likely, that we might have to weaken these assertions
on a less commonly used architecture.

Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/295606.1677101684@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/78be04e4c672a3ffb9c92dbb172dbd16edce8941

Modified Files
--------------
src/include/executor/execExpr.h | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-02-23 08:50:49 pgsql: Consider a failed process as a failed test in pg_regress
Previous Message Heikki Linnakangas 2023-02-22 19:42:44 pgsql: Check for unbounded authentication exchanges in libpq.