diff options
| author | Bruce Momjian <bruce@momjian.us> | 2002-09-02 06:22:20 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2002-09-02 06:22:20 +0000 |
| commit | 595a5a78e0fa7174b95949f04f810501c0261c5a (patch) | |
| tree | 0da570e06d81dc5ca484a66053c0eb38675602dd /src/include/utils | |
| parent | 81efc826081b7889753c449cf29dd72f75690047 (diff) | |
> Okay. When you get back to the original issue, the gold is hidden in
> src/backend/optimizer/path/indxpath.c; see the "special indexable
> operators" stuff near the bottom of that file. (It's a bit of a crock
> that this code is hardwired there, and not somehow accessed through a
> system catalog, but it's what we've got at the moment.)
The attached patch re-enables a bytea right hand argument (as compared
to a text right hand argument), and enables index usage, for bytea LIKE
Joe Conway
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/selfuncs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h index 18047f5dbf9..b85500dfde7 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.6 2002/06/20 20:29:53 momjian Exp $ + * $Id: selfuncs.h,v 1.7 2002/09/02 06:22:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -33,12 +33,12 @@ typedef enum /* selfuncs.c */ -extern Pattern_Prefix_Status pattern_fixed_prefix(char *patt, +extern Pattern_Prefix_Status pattern_fixed_prefix(Const *patt, Pattern_Type ptype, - char **prefix, - char **rest); + Const **prefix, + Const **rest); extern bool locale_is_like_safe(void); -extern char *make_greater_string(const char *str, Oid datatype); +extern Const *make_greater_string(const Const *str_const); extern Datum eqsel(PG_FUNCTION_ARGS); extern Datum neqsel(PG_FUNCTION_ARGS); |
