]> 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)
commit2f729d83226705d1149419a2aef7c1678fe641ec
tree220a863b34ae69cff8878ba5f6c912e37d01449b
parentbf6455d4c557ff9ef42985bb4806b251497bdc60
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