Hmm ... shouldn't path_distance be MIN distance not MAX distance? - Mailing list pgsql-hackers

From Tom Lane
Subject Hmm ... shouldn't path_distance be MIN distance not MAX distance?
Date
Msg-id 8484.964845557@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
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?

            regards, tom lane

pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: pg_dump & performance degradation
Next
From: Tom Lane
Date:
Subject: Re: pg_dump & performance degradation