Re: find sudstring on text (data type) field failure - Mailing list pgsql-sql

From Achilleas Mantzios
Subject Re: find sudstring on text (data type) field failure
Date
Msg-id 2124145.U7R12LdlNH@smadev.internal.net
Whole thread Raw
In response to find sudstring on text (data type) field failure  (pantelis vlachos <vlachos83@gmail.com>)
List pgsql-sql
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">Giasou Panteli,<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px;margin-right:0px; -qt-block-indent:0; text-indent:0px; "> <p style=" margin-top:0px; margin-bottom:0px;
margin-left:0px;margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">are you suggesting that the
resultsare incinsistent and unpredictable with every run?<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px;-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">pls present a case demontsrating the
problem.<pstyle="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0;text-indent:0px; "> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0;text-indent:0px; -qt-user-state:0;">On Τετ 07 Νοε 2012 10:36:34 pantelis vlachos wrote:<br /><p
style="margin-top:12px; margin-bottom:12px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px;
-qt-user-state:0;">Iwas trying to find a substring on a text (data type) column like 'cat foo dog ...'. <br />I use the
querybelow<br />SELECT id FROM table WHERE name LIKE '% foo %';<br />Sometimes the query return with nTuples=0 but
thereare matching rows.<br />On retry, the query return with expected results. Any ideas;<br /><br />(postgres ver 9.2,
libpq- C Library)<br /><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;
-qt-block-indent:0;text-indent:0px; -qt-user-state:0;"><br /><br /><p style=" margin-top:0px; margin-bottom:0px;
margin-left:0px;margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-<p style=" margin-top:0px;
margin-bottom:0px;margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Achilleas
Mantzios<pstyle=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;-qt-user-state:0;">IT DEPT 

pgsql-sql by date:

Previous
From: Allan Kamau
Date:
Subject: Re: How to compare two tables in PostgreSQL
Next
From: Igor Neyman
Date:
Subject: Re: How to compare two tables in PostgreSQL