Re: Bug(?) around 'infinity' - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug(?) around 'infinity'
Date
Msg-id 19948.1011904047@sss.pgh.pa.us
Whole thread Raw
In response to Bug(?) around 'infinity'  (Fduch the Pravking <fduch@antar.bryansk.ru>)
List pgsql-bugs
Fduch the Pravking <fduch@antar.bryansk.ru> writes:
> postmaster (PostgreSQL) 7.1.3

> psql input:
> test=> SELECT timestamp 'infinity' - timestamp 'infinity';

> psql output:
>                     ?column?
> -------------------------------------------------
>  -2147483648 days --2147483648:-2147483648:00NaN
> (1 row)

In current sources (7.2RC2, more or less) I get

regression=# SELECT timestamp 'infinity' - timestamp 'infinity';
ERROR:  Unable to subtract non-finite timestamps

So this has apparently been dealt with...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Fduch the Pravking
Date:
Subject: Bug(?) around 'infinity'
Next
From: Bruce Momjian
Date:
Subject: Re: COPY when 'filename' is a directory