aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-02-20 13:36:55 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-02-20 13:36:55 -0500
commit1571bc0f0613a82befe1a6eda39df161777231ad (patch)
tree85b869ae416d26d160b47ad761f0bfaf6164acff /src/backend/utils/adt/arrayutils.c
parent5721b9b3ceaa57219244954a6084d107b73082b6 (diff)
downloadpostgresql-1571bc0f0613a82befe1a6eda39df161777231ad.tar.gz
postgresql-1571bc0f0613a82befe1a6eda39df161777231ad.zip
Fix incorrect strictness test for ArrayCoerceExpr expressions.
The recursion in contain_nonstrict_functions_walker() was done wrong, causing the strictness check to be bypassed for a parse node that is the immediate input of an ArrayCoerceExpr node. This could allow, for example, incorrect decisions about whether a strict SQL function can be inlined. I didn't add a regression test, because (a) the bug is so narrow and (b) I couldn't think of a test case that wasn't dependent on a large number of other behaviors, to the point where it would likely soon rot to the point of not testing what it was intended to. I broke this in commit c12d570fa, so back-patch to v11. Discussion: https://postgr.es/m/27571.1550617881@sss.pgh.pa.us
Diffstat (limited to 'src/backend/utils/adt/arrayutils.c')
0 files changed, 0 insertions, 0 deletions