As suggested by Tom, this patch restricts the right-hand argument of
Bruce Momjian <bruce@momjian.us>
As suggested by Tom, this patch restricts the right-hand argument of bytealike to TEXT. This leaves like_escape_bytea() without anything to do, but I left it in place in anticipation of the eventual bytea pattern selectivity functions. If there is agreement that this would be the best long term solution, I'll take it as a TODO for 7.4. Joe Conway
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/like.c | modified | +3 −3 |
| src/include/catalog/pg_operator.h | modified | +3 −3 |
| src/include/catalog/pg_proc.h | modified | +5 −5 |