Partially undo commit 94da73281.

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

Commit: 6303df08f0c4961c4e13b8e2aefab2dc1be7cd2d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-08-05T19:57:46Z
Releases: 15.0
Partially undo commit 94da73281.

On closer inspection, mcv.c isn't as broken for ScalarArrayOpExpr
as I thought.  The Var-on-right issue is real enough, but actually
it does cope fine with a NULL array constant --- I was misled by
an XXX comment suggesting it didn't.  Undo that part of the code
change, and replace the XXX comment with something less misleading.

Files

PathChange+/−
src/backend/statistics/extended_stats.c modified +3 −4
src/backend/statistics/mcv.c modified +16 −9