postgresql/src
Tom Lane 115a365519 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
2025-01-30 13:21:42 -05:00
..
backend Simplify executor's handling of CaseTestExpr & CoerceToDomainValue. 2025-01-30 13:21:42 -05:00
bin Avoid breaking SJIS encoding while de-backslashing Windows paths. 2025-01-29 14:24:36 -05:00
common Add support for Unicode case folding. 2025-01-23 09:06:50 -08:00
fe_utils Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
include Simplify executor's handling of CaseTestExpr & CoerceToDomainValue. 2025-01-30 13:21:42 -05:00
interfaces Test ECPG decadd(), decdiv(), decmul(), and decsub() for risnull() input. 2025-01-25 11:28:14 -08:00
makefiles Update copyright for 2025 2025-01-01 11:21:55 -05:00
pl Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
port Avoid breaking SJIS encoding while de-backslashing Windows paths. 2025-01-29 14:24:36 -05:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
timezone Update time zone data files to tzdata release 2025a. 2025-01-20 16:49:15 -05:00
tools Change publication's publish_generated_columns option type to enum. 2025-01-23 15:28:37 +05:30
tutorial Doc: simplify the tutorial's window-function examples. 2025-01-21 14:43:21 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Convert sepgsql tests to TAP 2025-01-24 12:39:47 +01:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00