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+3pbdt6pr7fegpq9...@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2f729d83226705d1149419a2aef7c1678fe641ec Modified Files -------------- src/backend/partitioning/partprune.c | 7 ++- src/test/regress/expected/partition_prune.out | 68 +++++++++++++++++++++++++++ src/test/regress/sql/partition_prune.sql | 10 ++++ 3 files changed, 84 insertions(+), 1 deletion(-)
