diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-01-30 13:21:42 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-01-30 13:21:42 -0500 |
commit | 115a365519bfd53a65bf17d253b26902eff0c337 (patch) | |
tree | 809dcf8dcfd0ec0b82fce588557af80073005b02 /src/backend/utils/misc/stack_depth.c | |
parent | 6252b1eaf82bb8db361341d1c8651e43b29be816 (diff) | |
download | postgresql-115a365519bfd53a65bf17d253b26902eff0c337.tar.gz postgresql-115a365519bfd53a65bf17d253b26902eff0c337.zip |
Simplify executor's handling of CaseTestExpr & CoerceToDomainValue.
Instead of deciding at runtime whether to read from casetest.value
or caseValue_datum, split EEOP_CASE_TESTVAL into two opcodes and
make the decision during expression compilation. Similarly for
EEOP_DOMAIN_TESTVAL. This actually results in net less code,
mainly because llvmjit_expr.c's code for handling these opcodes
gets shorter. The performance gain is doubtless negligible, but
this seems worth changing anyway on grounds of simplicity and
understandability.
Author: Andreas Karlsson <andreas@proxel.se>
Co-authored-by: Xing Guo <higuoxing@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CACpMh+AiBYAWn+D1aU7Rsy-V1tox06Cbc0H3qA7rwL5zdJ=anQ@mail.gmail.com
Diffstat (limited to 'src/backend/utils/misc/stack_depth.c')
0 files changed, 0 insertions, 0 deletions