From 7015721388f081b78b4427f3073ff3fbb6672501 Mon Sep 17 00:00:00 2001 From: Nikita Glukhov Date: Sat, 12 Nov 2016 19:01:43 +0300 Subject: [PATCH 5/6] Export scalarineqsel() --- src/backend/utils/adt/selfuncs.c | 2 +- src/include/utils/selfuncs.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 03af7cc..ada17a6 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -573,7 +573,7 @@ neqsel(PG_FUNCTION_ARGS) * it will return an approximate estimate based on assuming that the constant * value falls in the middle of the bin identified by binary search. */ -static double +double scalarineqsel(PlannerInfo *root, Oid operator, bool isgt, bool iseq, Oid collation, VariableStatData *vardata, Datum constval, Oid consttype) diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h index cb7d510..be16606 100644 --- a/src/include/utils/selfuncs.h +++ b/src/include/utils/selfuncs.h @@ -254,6 +254,10 @@ extern List *add_predicate_to_index_quals(IndexOptInfo *index, extern void genericcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, GenericCosts *costs); +extern double scalarineqsel(PlannerInfo *root, Oid operator, bool isgt, + bool iseq, Oid collation, + VariableStatData *vardata, Datum constval, + Oid consttype); extern HeapTuple stats_form_tuple(StatsData *data); -- 1.8.3.1