Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78be04e

Browse files
committed
Add static assertion ensuring sizeof(ExprEvalStep) <= 64 bytes
This was previously only documented in a comment. Given the size of thestruct, it's not hard to miss that comment. As evidenced by the commitsleading up tofe3caa1,67b2670.It's possible, but not likely, that we might have to weaken these assertionson a less commonly used architecture.Author: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/295606.1677101684@sss.pgh.pa.us
1 parent5e04447 commit78be04e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/include/executor/execExpr.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,10 @@ typedef struct ExprEvalStep
669669
}d;
670670
}ExprEvalStep;
671671

672+
/* Enforce the size rule given in the comment above */
673+
StaticAssertDecl(sizeof(ExprEvalStep) <=64,
674+
"size of ExprEvalStep exceeds 64 bytes");
675+
672676

673677
/* Non-inline data for container operations */
674678
typedefstructSubscriptingRefState

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp