On Tue, 6 Dec 2022 at 20:17, James Pang (chaolpan) <chaolpan@xxxxxxxxx> wrote: > Could you provide the function name for generic plan selectivity estimation? If you look at eqsel_internal(), you'll see there are two functions that it'll call var_eq_const() for Consts and otherwise var_eq_non_const(). It'll take the non-Const path for planning generic plans. David