| От | K C Lau |
|---|---|
| Тема | limitation using LIKE on ANY(array) |
| Дата | |
| Msg-id | 6.2.1.2.0.20060324225743.04d49ac0@localhost обсуждение исходный текст |
| Ответ на | Re: Array performance (Michael Fuhr <mike@fuhr.org>) |
| Ответы |
Re: limitation using LIKE on ANY(array)
|
| Список | pgsql-performance |
With 8.1.3, I get an error when trying to do this on a Text[] column : .. WHERE ANY(array) LIKE 'xx%' Indeed, I get rejected even with: .. WHERE ANY(array) = 'xx' In both cases, the error is: ERROR: syntax error at or near "any" ... It would only work as documented in the manual (8.10.5): SELECT * FROM sal_emp WHERE 10000 = ANY (pay_by_quarter);It appears that this restriction is still in place in 8.2:
http://developer.postgresql.org/docs/postgres/arrays.html
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера