Re: 'infinity' in GiST index - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 'infinity' in GiST index
Date
Msg-id 25404.1115325217@sss.pgh.pa.us
Whole thread Raw
In response to Re: 'infinity' in GiST index  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> On Thu, 5 May 2005, Dave Held wrote:
>> I guess it depends on why you want to take the difference.  If
>> you want to take some measure of distance, it might be useful
>> to say that all infinite values of the same sign are at 0 distance
>> from each other, in which case you would say that +w - +w = 0.
>> Probably infinities of opposite signs should just be w apart
>> (which is also mathematically consistent).

> actually, it's timestamp_mi function rise the error which prevent
> GiST index creation.

Right --- the question is why is GIST calling that function.
What do you really need it to do?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Sergey E. Koposov"
Date:
Subject: Re: performance of bitmap scans in nested loop joins
Next
From: Josh Berkus
Date:
Subject: Re: 'kitchen sink' downloads (Was: Re: [pgsql-advocacy] Increased company involvement)