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 5E1263A19BD for ; Fri, 14 Jan 2005 12:05:46 +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 59074-03 for ; Fri, 14 Jan 2005 12:05:34 +0000 (GMT) Received: from mx.vitrado.de (mx.vitrado.de [194.97.5.172]) by svr1.postgresql.org (Postfix) with ESMTP id 2A26E3A1991 for ; Fri, 14 Jan 2005 12:05:33 +0000 (GMT) Received: from morpheus.vitrado.de ([194.97.5.114] helo=vitrado-011.intranet.de) by mx.vitrado.de with asmtp (Exim 4.34 and XAMS pre-0.0.16) id 1CpQCq-000553-21; Fri, 14 Jan 2005 13:05:32 +0100 From: Oliver Siegmar Organization: Vitrado GmbH To: Kris Jurka Subject: Re: Problems with infinity Date: Fri, 14 Jan 2005 13:05:30 +0100 User-Agent: KMail/1.7.1 Cc: pgsql-jdbc@postgresql.org References: <200501131419.00993.o.siegmar@vitrado.de> <200501140824.41665.o.siegmar@vitrado.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_LW75B0S7NGhYrZz" Message-Id: <200501141305.31056.o.siegmar@vitrado.de> X-VITRADO-MailScanner: Not scanned X-MailScanner-From: o.siegmar@vitrado.de X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/113 X-Sequence-Number: 11993 --Boundary-00=_LW75B0S7NGhYrZz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 14 January 2005 09:05, Kris Jurka wrote: > On Fri, 14 Jan 2005, Oliver Siegmar wrote: > > Well, I'd set Long.MIN_VALUE / Long.MAX_VALUE to the Timestamp - the > > pgsql driver could simply convert this to '-infinity' / 'infinity' > > strings, not? This could be done for both directions. > > Ahh, of course! The pg timestamp range is completely irrelevent to this > discussion because we are using infinity. That does sound workable. I'll > put it on the todo, but I personally don't think it's very high priority. Well...it has high priority for me, so drop it from your todo and apply my patch ;-)) I tested it and it works well here. I tried to use your coding style, hope everything is well. Maybe performance could be tweaked a bit by externalising "infinity" and "-infinity" strings to a final static, but I think java handles this properly with its internal string pool. I also removed the now obsolete exception message from the .po files - so the line numbers have to be renumbered (don't know how to do). Of course it has to be well tested. I don't know how it will perform on other PostgreSQL versions other than 7.4. I hope I haven't created any bad side effects. Cheers, Oliver --Boundary-00=_LW75B0S7NGhYrZz Content-Type: application/x-gzip; name="pgjdbc_infinity.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pgjdbc_infinity.patch.gz" H4sICEK050EAA3BnamRiY19pbmZpbml0eS5wYXRjaADtV11u20YQftcpBioQSQVFiaQkSo4dwLXV QoVit7bjFn0xaHIpMaF2md2lLOfnLLlFL9D2JH0oeovOkqZMyaSs1EXqAJkHkVrOfjP7fcPlzoh6 ZLEDjE9aERNywol4HbZeepeu2ToLZkRIZxa9kEEo9JfO3KnsPdwqJwen4Ach2YFWLHgrZK4Ttty5 4IzJVjRRwbPLtnlp8wonkgdkHtAJcLyIgFEwdMOseIHvQ5OreyhaktXVOpZndSq7kFlAJYiQUNgD oeN1Iqf1xlN0yPm0WqCmg8eIoDUJU2dOwAGXUZdEEpgPWeI1gYB+QAN5vTpfMJBTwgk6UCZhFrtT uCLgOhRRQT3R80n5UK+nWe1BH548wdzI69gJRb2a4VcbDXj3DpZug1W3Zs6vAW9z4MrklLMroOQK fjj9cTxcqHUgi/XvznTJ69VROpfA3AljAj6LqYe/HGRGqg7wvaJk6qgFIRUcVx8x6qWiRPiPUOko UL3a0NbCl5lK5hRnEf1w/2x4Nno+vDg+H558Oz7+KdEks/dKH6NruUanswatqMMMuYTdRFe19maz WXlW7rWUXfkafcMxbEsz+lZuTkmVPIOcD6qM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