Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dcd467a

Browse files
author
Nikita Glukhov
committed
Export scalarineqsel()
1 parent f689a0d commit dcd467a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ neqsel(PG_FUNCTION_ARGS)
573573
* it will return an approximate estimate based on assuming that the constant
574574
* value falls in the middle of the bin identified by binary search.
575575
*/
576-
static double
576+
double
577577
scalarineqsel(PlannerInfo *root, Oid operator, bool isgt, bool iseq,
578578
Oid collation,
579579
VariableStatData *vardata, Datum constval, Oid consttype)

src/include/utils/selfuncs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ extern List *add_predicate_to_index_quals(IndexOptInfo *index,
249249
extern void genericcostestimate(PlannerInfo *root, IndexPath *path,
250250
double loop_count,
251251
GenericCosts *costs);
252+
extern double scalarineqsel(PlannerInfo *root, Oid operator, bool isgt,
253+
bool iseq, Oid collation,
254+
VariableStatData *vardata, Datum constval,
255+
Oid consttype);
252256

253257
extern HeapTuple stats_form_tuple(StatsData *data);
254258

0 commit comments

Comments
 (0)