<div dir="ltr">Hi Stefen,<div><br></div><div style>How about using random() to pick up 10 table identifiers (provided the table contains a column with consecutive numbers, as a serial type would do) and then perform a select on them ?</div>
<div style><br></div><div style>Nicolas</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 January 2013 16:20, Stefan Keller <span dir="ltr"><<a href="mailto:sfkeller@gmail.com" target="_blank">sfkeller@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I have a query like this<br>
<br>
  SELECT ST_AsText(way) geom, name AS label<br>
  FROM osm_point<br>
  LIMIT 10;<br>
<br>
When I repeatedly do this, the result set will be always the same.<br>
I have observed this only empirically and I know that the ordering of<br>
the result set is undefined without ORDER BY.<br>
There are two indexes involved, one geospatial for way and one for name.<br>
<br>
My question is: Does someone have an idea on how to randomize the<br>
result set on every consecutive query?<br>
And as an option the (limited) resultset should be spatially<br>
distributed (not clustered).<br>
<br>
Yours, Stefan<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div>