Re: Recovery mode with partitioned tables and ANY(NULL) in WHERE clause

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Włodarczyk <piotrwlodarczyk89@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-08-09T16:45:42Z
Lists: pgsql-bugs
=?UTF-8?Q?Piotr_W=C5=82odarczyk?= <piotrwlodarczyk89@gmail.com> writes:
> I think we found BUG in version from 11.4 to 11.5 (maybe and previous).

Yeah, looks like the ScalarArrayOpExpr path in
match_clause_to_partition_key forgot to consider the possibility
of a constant-null array.  Will fix, thanks for the report!

			regards, tom lane



Commits

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