Hi,
attached is an updated version of the patch, addressing most of the
issues raised in the recent reviews. There are two main exceptions:
1) I haven't reworked the regression tests to use a function to check
cardinality estimates and making them faster.
2) Review handling of bitmap in statext_is_compatible_clause_internal
when processing AND/OR/NOT clauses.
I plan to look into those items next, but I don't want block review of
other parts of the patch unnecessarily.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services