mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
> 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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user