Fix SIGSEGV in pruning for ScalarArrayOp with constant-null array.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2f729d83226705d1149419a2aef7c1678fe641ec
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2019-08-09T17:20:28Z
Releases: 11.6
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

Discussion