Scott Cain <cain@cshl.org> writes:
> Embarrassingly, I can't. I've been monkeying with the database so much
> that I can't seem to get it back to the state where I reproduce the
> behavior I want.
If the thing works as desired after a VACUUM ANALYZE, then I suggest
the estimation failure was just due to out-of-date statistics ...
regards, tom lane