On Sun, 2023-07-23 at 14:04 +0200, Tomas Vondra wrote: > But I'm getting a bit lost regarding what's the proposed costing > strategy. It's hard to follow threads spanning days, with various > other > distractions, etc.
I'm getting a bit lost in this discussion as well -- for the purposes of this feature, we only need to know whether to push down a clause as an Index Filter or not, right? Could we start out conservatively and push down as an Index Filter unless there is some other clause ahead of it that can't be pushed down? That would allow users to have some control by writing clauses in the desired order or wrapping them in functions with a declared cost. Regards, Jeff Davis