| От | Sim Zacks |
|---|---|
| Тема | Re: join on a like |
| Дата | |
| Msg-id | e372iq$2ri2$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: join on a like ("mlartz@gmail.com" <mlartz@gmail.com>) |
| Список | pgsql-sql |
I guess the real question is: what is more efficient - a join on a LIKE or a PLPGSQL function that has 2 loops, 1 for each bottom level child and one that takes the substring of that child one character at a time to get each parent? It sounds like you are saying that the join will actaully use the index and therefore it is optimal, not just possible. mlartz@gmail.com wrote: > If you use a btree index on the column, you should be able to use it in > the like: > http://www.postgresql.org/docs/8.1/interactive/indexes-types.html. >
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера