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

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

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