Hmm ... shouldn't path_distance be MIN distance not MAX distance?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org, pgsql-general(at)postgreSQL(dot)org
Subject: Hmm ... shouldn't path_distance be MIN distance not MAX distance?
Date: 2000-07-29 04:39:17
Message-ID: 8484.964845557@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-07-29 04:57:46 Re: pg_dump & performance degradation
Previous Message Andrew Snow 2000-07-29 04:25:59 RE: Re: 4 billion record limit?

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-07-29 04:57:46 Re: pg_dump & performance degradation
Previous Message Philip Warner 2000-07-29 04:14:11 Re: pg_dump & performance degradation