Re: Creating an index-type for LIKE '%value%'

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема Re: Creating an index-type for LIKE '%value%'
Дата
Msg-id Pine.GSO.4.62.0502081708190.2906@ra.sai.msu.su
обсуждение исходный текст
Ответ на Re: Creating an index-type for LIKE '%value%'  (Larry Rosenman <ler@lerctr.org>)
Ответы Re: Creating an index-type for LIKE '%value%'
Список pgsql-general
On Tue, 8 Feb 2005, Larry Rosenman wrote:

> On Tue, 8 Feb 2005, Oleg Bartunov wrote:
>
>> On Mon, 7 Feb 2005, Larry Rosenman wrote:
>>
>>> Oleg Bartunov wrote:
>>
>> Larry, I pointed you to pg_trgm module mostly following Martijn's
>> suggestions. Now, I see you need another our module - ltree,
>> see http://www.sai.msu.su/~megera/postgres/gist/ltree/
>> for details.
>
> I maybe dense, but could you give me an example?

test=# \d tt
      Table "public.tt"
  Column | Type  | Modifiers
--------+-------+-----------
  domain | ltree |
Indexes:
     "ltree_idx" gist ("domain")

test=# select * from tt where domain ~ '*.ru'::lquery;
    domain
-------------
  astronet.ru
  mail.ru
  pgsql.ru
(3 rows)


>
> I'm not seeing it for some reason :).
>
> Thanks,
> LER
>
>

     Regards,
         Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Safely Killing Backends (Was: Applications that leak connections)
Следующее
От: "Ian Harding"
Дата:
Сообщение: Re: indexing just a part of a string