pgsql: Fix SIGSEGV in pruning for ScalarArrayOp with constant-nullarra - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix SIGSEGV in pruning for ScalarArrayOp with constant-nullarra
Date
Msg-id E1hw8ZH-0007Bc-3q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0662eb6219f1f4bafc1916a0bf2813cdc58e5eca

Modified Files
--------------
src/backend/partitioning/partprune.c          |  7 ++-
src/test/regress/expected/partition_prune.out | 66 +++++++++++++++++++++++++++
src/test/regress/sql/partition_prune.sql      | 10 ++++
3 files changed, 82 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Cosmetic improvements in setup of planner's per-RTE arrays.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Rename tuplesort.c's SortTuple.tupindex field.