Re: [HACKERS] Hmm ... shouldn't path_distance be MIN distance not MAX distance? - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: [HACKERS] Hmm ... shouldn't path_distance be MIN distance not MAX distance?
Date
Msg-id 39850E1A.B42F8E9E@alumni.caltech.edu
Whole thread Raw
In response to Hmm ... shouldn't path_distance be MIN distance not MAX distance?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> I just noticed that path_distance() in geo_ops.c (the "<->" operator
> for path datatype) claims to be computing the minimum distance between
> any two line segments of the two paths, but actually it's computing the
> maximum such distance.
> Isn't this broken?

Sure sounds like it :(

                  - Thomas

pgsql-general by date:

Previous
From: "KMiller"
Date:
Subject: Is this a bug or am I missing something?
Next
From: "Oliver Elphick"
Date:
Subject: Re: Inheritance