pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions. @ 2019-02-20 18:37 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-02-20 18:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1571bc0f0613a82befe1a6eda39df161777231ad Modified Files -------------- src/backend/optimizer/util/clauses.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions. @ 2019-02-20 18:37 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-02-20 18:37 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/93ec0c90cde7e0188c96bca9a8ba815b58c00d24 Modified Files -------------- src/backend/optimizer/util/clauses.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-02-20 18:37 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-02-20 18:37 pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-20 18:37 pgsql: Fix incorrect strictness test for ArrayCoerceExpr expressions. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox