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

From: Achilleas Mantzios <achill(at)smadev(dot)internal(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: find sudstring on text (data type) field failure
Date: 2012-11-12 07:52:26
Message-ID: 2124145.U7R12LdlNH@smadev.internal.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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 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)

-
Achilleas Mantzios
IT DEPT

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Allan Kamau 2012-11-12 08:00:32 Re: How to compare two tables in PostgreSQL
Previous Message Rob Sargentg 2012-11-12 07:23:10 Re: How to compare two tables in PostgreSQL