From 4a6290e876a7d83129f7a01a8549d5d356a0c287 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 3e8fc47f662..1478ee536ad 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 b90e05b8707..74841a108b4 100644 --- a/src/include/utils/selfuncs.h +++ b/src/include/utils/selfuncs.h @@ -249,6 +249,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); -- 2.31.1