Hi Zizhuan,
Thanks for checking v4 so closely.
v4 only fixes the NULL pairs this bug reports, and the three cases
you listed get the same estimates as on master.
I think fcinfo->context still changes the estimator contract, since an
estimator that ignores it would quietly return the plain "=" estimate.
Maybe your <> fix for BUG #19926 could go in as its own patch?
Thanks,
Shihao