<div dir="ltr">I've seen plenty of users (including myself) confused by the = operator, especially when it's implicitly accessed in cases like DISTINCT, DISTINCT ON(), and GROUP BY.  The workaround, to serialize and do a string compare, can really add a lot of noise to a query.  Are there benefits that come from the current behavior of the = operator, besides the (high) value of backwards compatibility?<div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 7, 2016 at 7:22 AM, Komяpa <span dir="ltr"><<a href="mailto:me@komzpa.net" target="_blank">me@komzpa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hey there,<div><br></div><div><a href="https://trac.osgeo.org/postgis/ticket/3521" target="_blank">https://trac.osgeo.org/postgis/ticket/3521</a> floated nearby me and broke my heart.<br></div><div><br></div><div>Can we have SELECT DISTINCT work for sure as a complete compare, not just bbox one?</div><div><br></div><div>It also touches the topic of sorting the boxes - it seems now they're sorted by X, then by Y - which is usually a poor way to preserve spatial locality. Can we sort by z-order curve instead? just bit-mix all the coordinates: <a href="https://en.wikipedia.org/wiki/Z-order_curve" target="_blank">https://en.wikipedia.org/wiki/Z-order_curve</a> - that will make painful voodoo stuff like ORDER BY ST_GeoHash(ST_Transfrom(ST_Centroid(geom),4326)) much cleaner and replace it with just CLUSTER (see <a href="https://github.com/openstreetmap/osm2pgsql/issues/208" target="_blank">https://github.com/openstreetmap/osm2pgsql/issues/208</a> ).</div></div>
<br>_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org">postgis-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br></blockquote></div><br></div>