Re: time conversion fuinctions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: time conversion fuinctions
Date: 2006-10-07 15:57:05
Message-ID: 18763.1160236625@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com> writes:
> Is this the expected result?

timestamp_date() currently returns NULL if the timestamp is infinity.
Since we don't have any representation for infinity in the date type,
this is pretty much its only alternative other than throwing an error
(which might indeed be a saner behavior). There is a TODO item to
support +/-infinity in dates, which would be the correct long-term
solution.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message brian 2006-10-07 16:04:04 Re: time conversion fuinctions
Previous Message Martin Steffen 2006-10-07 14:55:54 Re: failure to connect to postgres DB via pg.el