summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2013-12-10 21:10:24 +0000
committerTom Lane2013-12-10 21:10:24 +0000
commitf5d9fdcc773c34992a9ebe867ed452a670b91d29 (patch)
tree7bf85499ff0901e983807ee648e1149dd66e69d4 /doc/src
parent7f4ef622f20733e46f00071b7ec9a9324169b9c2 (diff)
Fix possible crash with nested SubLinks.
An expression such as WHERE (... x IN (SELECT ...) ...) IN (SELECT ...) could produce an invalid plan that results in a crash at execution time, if the planner attempts to flatten the outer IN into a semi-join. This happens because convert_testexpr() was not expecting any nested SubLinks and would wrongly replace any PARAM_SUBLINK Params belonging to the inner SubLink. (I think the comment denying that this case could happen was wrong when written; it's certainly been wrong for quite a long time, since very early versions of the semijoin flattening logic.) Per report from Teodor Sigaev. Back-patch to all supported branches.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions