<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Under the hood bounding box equality seems like a very counter intuitive behaviour.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">On the other hand, adding a "::text" or "::bytea"in the "distinct on" part does not feel like to much of a burden,<br></div><div class="gmail_default" style="font-family:monospace,monospace">although it is mighty ugly.<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br>Having a = operator with tolerance would be super useful, but I don't see how you could use it in a distinct query.<br><br>Cheers,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-07 17:13 GMT+02:00 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Apr 07, 2016 at 03:06:56PM +0000, Komяpa wrote:<br>
> чт, 7 апр. 2016 г. в 17:39, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>>:<br>
><br>
> > Speed is a benefit. Once you start down the road of = semantics, the<br>
> > question of "which equals" looms large. Spatial equality?<br>
> > Representational equality? Equality within a tolerance? Doing a string<br>
> > compare is basically the only one that doesn't impose a surprising<br>
> > cost, and it is, as you say, noisy.<br>
><br>
> The equality that is the same as string compare would be a lot less<br>
> surprising.<br>
> It shouldn't be slower than bbox equality with recheck for the case when<br>
> they're equal.<br>
<br>
</span>We don't even need to convert to string, actually.<br>
A memcmp call would be pretty fast.<br>
<br>
--strk;<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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></div></div></blockquote></div><br></div>