Thread: Problem with GIST-index and timestamps

Problem with GIST-index and timestamps

From
Sebastian Böck
Date:
Hello,

i wanted to define and GIST-index on a table with a timestamp-column
containing 'infinity' values, and it throws the following error:

ERROR:  cannot subtract infinite timestamps

Is this a known limitation?
How can i avoid or circumvent this?

Thanks in advance

Sebastian

Re: Problem with GIST-index and timestamps

From
Oleg Bartunov
Date:
On Thu, 28 Apr 2005, [ISO-8859-1] Sebastian B?ck wrote:

> Hello,
>
> i wanted to define and GIST-index on a table with a timestamp-column
> containing 'infinity' values, and it throws the following error:
>
> ERROR:  cannot subtract infinite timestamps
>
> Is this a known limitation?

I don't know.

> How can i avoid or circumvent this?

partial index should works


>
> Thanks in advance
>
> Sebastian
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>

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

Re: Problem with GIST-index and timestamps

From
Sebastian Böck
Date:
Oleg Bartunov wrote:
> On Thu, 28 Apr 2005, [ISO-8859-1] Sebastian B?ck wrote:
>
>> Hello,
>>
>> i wanted to define and GIST-index on a table with a timestamp-column
>> containing 'infinity' values, and it throws the following error:
>>
>> ERROR:  cannot subtract infinite timestamps
>>
>> Is this a known limitation?
>
>
> I don't know.

Ok, so let me ask wether it's a bug or not.

>
>> How can i avoid or circumvent this?
>
>
> partial index should works

Sure they do, but they're not quite useful in my situation.

Thanks

Sebastian