find a substring on a text (data type) column - Mailing list pgsql-general

From pantelis vlachos
Subject find a substring on a text (data type) column
Date
Msg-id CAAYHi_dN5NGx4oEfM1kUjx7H897TE6KVQ-rsWQ9H9z7LMgn-PQ@mail.gmail.com
Whole thread Raw
Responses Re: find a substring on a text (data type) column  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: 高健
Date:
Subject: Use order by clause, got index scan involved
Next
From: Pavel Stehule
Date:
Subject: Re: find a substring on a text (data type) column