From: | "Partyka Robert" <bobson(at)saturn(dot)alpha(dot)pl> |
---|---|
To: | Einar Karttunen <ekarttun(at)cs(dot)Helsinki(dot)FI> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Strange select query |
Date: | 2001-09-12 09:16:05 |
Message-ID: | 3B9F43F5.10584.92CC96@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello
> The query is valid you should get more ram or rethink your query :-)
thx for explain how meny records it will return,
I know that was my mistake because the correct query I need was
something like:
select * from TA as a, TB as b, TC as c where
(position('some text' in a.textfield)>0 and a.index=b.referencefield
and b.other_referencefield=c.index) or
(position('some text' in b.textfield)>0 and a.index=b.referencefield
and b.other_referencefield=c.index)
or
(position('some text' in c.textfield)>0 and a.index=b.referencefield
and b.other_referencefield=c.index);
I was just wonder if that was bad query and take never ending loop
in backend or just return so many records.
In fact i should get this reflection self ... so maybe it was brain lock
that I dont saw this explanation (sig 'take some rest' from brain? ;-)
). I was suggested by result show by psql (I saw one the same
record showed about 100 times before I ^C the query so i think 'oh.
its probably never ending loop.').
regards
Robert Partyka
From | Date | Subject | |
---|---|---|---|
Next Message | Thurstan R. McDougle | 2001-09-12 09:27:26 | Re: USA Disaster |
Previous Message | Einar Karttunen | 2001-09-12 08:49:52 | Re: Strange select query |