diff options
| author | Tom Lane | 2002-10-19 02:56:16 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-10-19 02:56:16 +0000 |
| commit | c0f7dcdac10777a270eed88613a29b8e5d38a015 (patch) | |
| tree | 08c825c755e7120f55f2ad5d41f49e5eacb6b3a4 /src/include | |
| parent | a3cb8746d901d503f99b9aa4ab80b6782c2b1767 (diff) | |
Fix range-query estimation to not double-exclude NULLs, per gripe from
Ray Ontko 28-June-02. Also, fix prefix_selectivity for NAME lefthand
variables (it was bogusly assuming binary compatibility), and adjust
make_greater_string() to not call pg_mbcliplen() with invalid multibyte
data (this last per bug report that I can't find at the moment, but it
was in July '02).
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/selfuncs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h index 4ed6c1755c7..8e73e61ffdc 100644 --- a/src/include/utils/selfuncs.h +++ b/src/include/utils/selfuncs.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: selfuncs.h,v 1.8 2002/09/04 20:31:46 momjian Exp $ + * $Id: selfuncs.h,v 1.9 2002/10/19 02:56:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -66,8 +66,10 @@ extern Datum icregexnejoinsel(PG_FUNCTION_ARGS); extern Datum nlikejoinsel(PG_FUNCTION_ARGS); extern Datum icnlikejoinsel(PG_FUNCTION_ARGS); -extern Selectivity booltestsel(Query *root, BooleanTest *clause, int varRelid); -extern Selectivity nulltestsel(Query *root, NullTest *clause, int varRelid); +extern Selectivity booltestsel(Query *root, BoolTestType booltesttype, + Node *arg, int varRelid); +extern Selectivity nulltestsel(Query *root, NullTestType nulltesttype, + Node *arg, int varRelid); extern void mergejoinscansel(Query *root, Node *clause, Selectivity *leftscan, |
