* Otherwise, fall back to the default selectivity provided by the caller.
*/
double
-generic_restriction_selectivity(PlannerInfo *root, Oid operator,
+generic_restriction_selectivity(PlannerInfo *root, Oid oproid,
List *args, int varRelid,
double default_selectivity)
{
double nullfrac;
int hist_size;
- fmgr_info(get_opcode(operator), &opproc);
+ fmgr_info(get_opcode(oproid), &opproc);
/*
* Calculate the selectivity for the column's most common values.
Datum constval, bool varonleft,
int min_hist_size, int n_skip,
int *hist_size);
-extern double generic_restriction_selectivity(PlannerInfo *root, Oid operator,
+extern double generic_restriction_selectivity(PlannerInfo *root, Oid oproid,
List *args, int varRelid,
double default_selectivity);
extern double ineq_histogram_selectivity(PlannerInfo *root,