> 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
Showing
- src/backend/optimizer/path/indxpath.c 48 additions, 76 deletionssrc/backend/optimizer/path/indxpath.c
- src/backend/utils/adt/like.c 3 additions, 3 deletionssrc/backend/utils/adt/like.c
- src/backend/utils/adt/selfuncs.c 192 additions, 62 deletionssrc/backend/utils/adt/selfuncs.c
- src/include/catalog/pg_operator.h 3 additions, 3 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_proc.h 5 additions, 5 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/selfuncs.h 5 additions, 5 deletionssrc/include/utils/selfuncs.h
Loading
Please register or sign in to comment