find a substring on a text (data type) column

Поиск
Список
Период
Сортировка
От pantelis vlachos
Тема find a substring on a text (data type) column
Дата
Msg-id CAAYHi_dN5NGx4oEfM1kUjx7H897TE6KVQ-rsWQ9H9z7LMgn-PQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: find a substring on a text (data type) column  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
I was trying to find a substring on a text (data type) column like 'cat foo dog ...'.
I use the query below
SELECT id FROM table WHERE name LIKE '% foo %';
Sometimes the query return with nTuples=0 but there are matching rows.
On retry, the query return with expected results. Any ideas;

(postgres ver 9.2, libpq - C Library)

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

Предыдущее
От: 高健
Дата:
Сообщение: Use order by clause, got index scan involved
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: find a substring on a text (data type) column