From 595a5a78e0fa7174b95949f04f810501c0261c5a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 2 Sep 2002 06:22:20 +0000 Subject: > 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 --- src/include/utils/selfuncs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/include/utils') 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); -- cgit v1.2.3