Hi Kis,<br>I don&#39;t think the GiST index has anything to do with this, i&#39;m only processing one record.<br>thx,<br>WBL<br><br><div class="gmail_quote">On Thu, Feb 21, 2008 at 7:47 AM, Kis János Tamás &lt;<a href="mailto:kjt@takarnet.hu">kjt@takarnet.hu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">csütörtök 14 február 2008 15.11 dátummal Willy-Bas Loos ezt írta:<br>
<div class="Ih2E3d">&gt;<br>
&gt; select &#39;yes&#39; as foo<br>
&gt; from table1 a, table1 b<br>
&gt; where a.gid=4<br>
&gt; and b.gid=4<br>
&gt; and intersects(a.the_geom, b.the_geom)<br>
&gt;<br>
<br>
</div>Did you try the next procedure?<br>
<br>
create index i_a on table1 &nbsp;usng gist the_geom;<br>
create index i_b on table2 &nbsp;usng gist the_geom;<br>
<div class="Ih2E3d"><br>
select &#39;yes&#39; as foo<br>
from table1 a, table1 b<br>
where a.gid=4<br>
 &nbsp; &nbsp;and b.gid=4<br>
</div> &nbsp; &nbsp;and a.the_geom &amp;&amp; b.the_geom<br>
<div class="Ih2E3d"> &nbsp; &nbsp;and intersects(a.the_geom, b.the_geom)<br>
<br>
</div>Regards,<br>
kjt<br>
<br>
<br>
McAfee SCM 4.1 által ellenőrizve!<br>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br>