]> git.ipfire.org Git - thirdparty/postgresql.git/commit
expression eval: Fix EEOP_JSON_CONSTRUCTOR and EEOP_JSONEXPR size.
authorAndres Freund <andres@anarazel.de>
Fri, 17 Jun 2022 01:33:42 +0000 (18:33 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 5 Jul 2022 18:26:27 +0000 (11:26 -0700)
commit5a1ab894f758fae95b8d40fff0b0fa5048b09467
treeb59a78b480b098e27ad5fe0a430515168ac51840
parent49ddd98763624cfb6020f8b525a021e9788473a5
expression eval: Fix EEOP_JSON_CONSTRUCTOR and EEOP_JSONEXPR size.

The new expression step types increased the size of ExprEvalStep by ~4 for all
types of expression steps, slowing down expression evaluation noticeably. Move
them out of line.

There's other issues with these expression steps, but addressing them is
largely independent of this aspect.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/20220616233130.rparivafipt6doj3@alap3.anarazel.de
Backpatch: 15-
src/backend/executor/execExpr.c
src/backend/executor/execExprInterp.c
src/include/executor/execExpr.h
src/tools/pgindent/typedefs.list