Re: 'infinity' in GiST index

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Dave Held <dave(dot)held(at)arraysg(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 'infinity' in GiST index
Date: 2005-05-05 19:44:33
Message-ID: Pine.GSO.4.62.0505052341430.18597@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 5 May 2005, Dave Held wrote:

>
>> but I doubt GiST will be happy if we make the datatype behave
>> that way...
>
> 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.

>
> __
> David B. Held
> Software Engineer/Array Services Group
> 200 14th Ave. East, Sartell, MN 56377
> 320.534.3637 320.253.7800 800.752.8129
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-05-05 19:55:12 Re: Views, views, views! (long)
Previous Message Dave Page 2005-05-05 19:41:05 Re: [pgsql-advocacy] Increased company involvement