Re: inability to restore infinity values via psql or pg_restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tfo(at)monsterlabs(dot)com
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: inability to restore infinity values via psql or pg_restore
Date: 2001-01-23 22:57:14
Message-ID: 8223.980290634@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> inability to restore infinity values via psql or pg_restore

I don't think this has anything to do with a dump/restore problem.
What it is is a problem with dealing with overflow in timestamp
calculations.

In current sources:

regression=# select timestamp 'infinity' - timestamp '-infinity';
?column?
---------------------------------------------
2147483647 days 2147483647:2147483647:00inf
(1 row)

AFAICT we don't have a concept of "infinity" for intervals, so this
should raise an error instead of returning a bogus value.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2001-01-24 04:58:13 Re: 7.1 released on 2000-09-01?
Previous Message pgsql-bugs 2001-01-23 22:36:46 inability to restore infinity values via psql or pg_restore