]> granicus.if.org Git - postgresql/commit
Fix SIGSEGV in pruning for ScalarArrayOp with constant-null array.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Aug 2019 17:20:28 +0000 (13:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Aug 2019 17:20:28 +0000 (13:20 -0400)
commit0662eb6219f1f4bafc1916a0bf2813cdc58e5eca
treeab24f64e41896cfb6ea362534f7a60862ae6f94b
parent1661a4050593a472c369a6660ffec05b6b837c57
Fix SIGSEGV in pruning for ScalarArrayOp with constant-null array.

Not much to be said here: commit 9fdb675fc should have checked
constisnull, didn't.

Per report from Piotr Włodarczyk.  Back-patch to v11 where
bug was introduced.

Discussion: https://postgr.es/m/CAP-dhMr+vRpwizEYjUjsiZ1vwqpohTm+3Pbdt6Pr7FEgPq9R0Q@mail.gmail.com
src/backend/partitioning/partprune.c
src/test/regress/expected/partition_prune.out
src/test/regress/sql/partition_prune.sql