From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Oliver Siegmar <o.siegmar@vitrado.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with infinity
Date: Fri, 14 Jan 2005 10:38:58 -0500
Message-ID: <23736.1105717138@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.56.0501140719390.16048@leary.csoft.net>
References: <200501131419.00993.o.siegmar@vitrado.de>
<200501140824.41665.o.siegmar@vitrado.de>
<Pine.BSO.4.56.0501140257030.24417@leary.csoft.net>
<200501141305.31056.o.siegmar@vitrado.de>
<Pine.BSO.4.56.0501140719390.16048@leary.csoft.net>
Kris Jurka <books@ejurka.com> writes:
> This looks alright for timestamp, but I don't think this is the right
> thing to do for date and time. The result of getDate should have no hour,
> minute, and seconds component. Likewise for getTime the date components
> should be set to the unix zero epoch. This means that setDate and setTime
> can't really take infinite values (at least how you're proposing), but
> that's not a real issue because pg's date and time types don't support
> infinity. Do you think it is important to support these or is timestamp
> alone enough?
There is a TODO item to allow +infinity and -infinity in the DATE datatype.
So I'd recommend making sure you handle that case, even if it can't
occur today.
Don't recall anyone having ever asked for infinity in the TIME type.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, books@ejurka.com, o.siegmar@vitrado.de
Subject: Re: Problems with infinity
In-Reply-To: <23736.1105717138@sss.pgh.pa.us>
References: <200501131419.00993.o.siegmar@vitrado.de> <200501140824.41665.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501140257030.24417@leary.csoft.net> <200501141305.31056.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501140719390.16048@leary.csoft.net> <23736.1105717138@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox