aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeRecursiveunion.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-01-02 16:33:48 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-01-02 16:33:48 -0500
commit099063340bb1f82cc3e156e5558f6c456b41bfa5 (patch)
tree60e0e8c971ead68fac62d553301b1655543204e8 /src/backend/executor/nodeRecursiveunion.c
parent7cf8879fe61e330aa55154b16b750bb19d6c6e97 (diff)
downloadpostgresql-099063340bb1f82cc3e156e5558f6c456b41bfa5.tar.gz
postgresql-099063340bb1f82cc3e156e5558f6c456b41bfa5.zip
Don't believe MinMaxExpr is leakproof without checking.
MinMaxExpr invokes the btree comparison function for its input datatype, so it's only leakproof if that function is. Many such functions are indeed leakproof, but others are not, and we should not just assume that they are. Hence, adjust contain_leaked_vars to verify the leakproofness of the referenced function explicitly. I didn't add a regression test because it would need to depend on some particular comparison function being leaky, and that's a moving target, per discussion. This has been wrong all along, so back-patch to supported branches. Discussion: https://postgr.es/m/31042.1546194242@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeRecursiveunion.c')
0 files changed, 0 insertions, 0 deletions