Re: Index to support LIKE '%suffix' queries

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Index to support LIKE '%suffix' queries
Дата
Msg-id 877j7jfhqs.fsf@mid.deneb.enyo.de
обсуждение исходный текст
Ответ на Re: Index to support LIKE '%suffix' queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Index to support LIKE '%suffix' queries
Список pgsql-sql
* Tom Lane:

> Florian Weimer <fw@deneb.enyo.de> writes:
>> Is it possible to create an index to support queries of the form
>> "column LIKE '%suffix'" (similar to an ordinary index for LIKE
>> 'prefix%', which I also need)?
>
> Sounds like what you *really* need is full-text search, not half
> measures ... have you looked at tsearch2?

Uh-oh, the table in question has got 50+ million rows (and is still
growing).  Each "document" contains about three words.  Do you think
tsearch2 could deal with that?


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Index to support LIKE '%suffix' queries
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Index to support LIKE '%suffix' queries