X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 018873A1991 for ; Fri, 14 Jan 2005 15:39:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79981-05 for ; Fri, 14 Jan 2005 15:38:56 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2CC0A3A18A7 for ; Fri, 14 Jan 2005 15:38:58 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j0EFcwtY023737; Fri, 14 Jan 2005 10:38:58 -0500 (EST) To: Kris Jurka Cc: Oliver Siegmar , pgsql-jdbc@postgresql.org Subject: Re: Problems with infinity In-reply-to: References: <200501131419.00993.o.siegmar@vitrado.de> <200501140824.41665.o.siegmar@vitrado.de> <200501141305.31056.o.siegmar@vitrado.de> Comments: In-reply-to Kris Jurka message dated "Fri, 14 Jan 2005 07:29:54 -0500" Date: Fri, 14 Jan 2005 10:38:58 -0500 Message-ID: <23736.1105717138@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/117 X-Sequence-Number: 11997 Kris Jurka 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