Re: [SQL] find sudstring on text (data type) field failure

2012-11-12 Thread Achilleas Mantzios
Gia sou Panteli, are you suggesting that the results are incinsistent and unpredictable with every run? pls present a case demontsrating the problem. On Τετ 07 Νοε 2012 10:36:34 pantelis vlachos wrote: I was trying to find a substring on a text (data type) column like 'cat foo dog ...'. I use

Re: [SQL] find sudstring on text (data type) field failure

2012-11-11 Thread Craig Ringer
On 11/07/2012 04:36 PM, pantelis vlachos wrote: > 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, th

[SQL] find sudstring on text (data type) field failure

2012-11-10 Thread pantelis vlachos
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