Fix SIGSEGV in pruning for ScalarArrayOp with constant-null array.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/partitioning/partprune.c | modified | +6 −1 |
| src/test/regress/expected/partition_prune.out | modified | +66 −0 |
| src/test/regress/sql/partition_prune.sql | modified | +10 −0 |
Discussion
- Recovery mode with partitioned tables and ANY(NULL) in WHERE clause 8 messages · 2019-08-09 → 2019-08-13