summaryrefslogtreecommitdiff
path: root/src/include/utils/selfuncs.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-04-27 17:52:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-04-27 17:52:40 +0000
commit0f0a33099cf99e292c832efc60cf07fc8170bc5f (patch)
tree6f59dfa841fa8ce7b45dbdb21e8cc2238b466a17 /src/include/utils/selfuncs.h
parentafab814a18f5eb75a3f63381fc38e08295be4f76 (diff)
Generalize mcv_selectivity() to support both VAR OP CONST and CONST OP VAR
cases. This was not needed in the existing uses within selfuncs.c, but if we're gonna export it for general use, the extra generality seems helpful. Motivated by looking at ltree example.
Diffstat (limited to 'src/include/utils/selfuncs.h')
-rw-r--r--src/include/utils/selfuncs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h
index 9ba11c99ae5..723ae07092d 100644
--- a/src/include/utils/selfuncs.h
+++ b/src/include/utils/selfuncs.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/selfuncs.h,v 1.31 2006/04/27 00:46:59 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/utils/selfuncs.h,v 1.32 2006/04/27 17:52:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -108,7 +108,8 @@ extern void get_join_variables(PlannerInfo *root, List *args,
VariableStatData *vardata2);
extern double get_variable_numdistinct(VariableStatData *vardata);
extern double mcv_selectivity(VariableStatData *vardata, FmgrInfo *opproc,
- Datum constval, double *sumcommonp);
+ Datum constval, bool varonleft,
+ double *sumcommonp);
extern Pattern_Prefix_Status pattern_fixed_prefix(Const *patt,
Pattern_Type ptype,