Re: [GENERAL] find a substring on a text (data type) column

2012-11-07 Thread Pavel Stehule
Hello 2012/11/8 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 retu

[GENERAL] find a substring on a text (data type) column

2012-11-07 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