pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Oliver Siegmar <o.siegmar@vitrado.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with infinity
Date: Thu, 13 Jan 2005 09:18:09 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0501130909440.22366@leary.csoft.net> (raw)
In-Reply-To: <200501131452.31209.o.siegmar@vitrado.de>
References: <200501131419.00993.o.siegmar@vitrado.de>
	<Pine.BSO.4.56.0501130835370.26@leary.csoft.net>
	<200501131452.31209.o.siegmar@vitrado.de>



On Thu, 13 Jan 2005, Oliver Siegmar wrote:

> On Thursday 13 January 2005 14:42, Kris Jurka wrote:
> >
> > This is indeed a bug in the 7.4 drivers.
> 
> Will you fix it? ;-)

Sure, but you should be aware that the driver only does this conversion on 
output (rs.getTimestamp()).  No conversion is done for setTimestamp, so 
it's a one way solution.  This was part of my reasoning for removing it.

> Couldn't you make it configurable (like 'convert_infinite_to_min_max = true')?
> 

That could be done, but how do you define min/max.  There are at least 
three possible definitions I can think of: Java's min/max value for 
Timestamp and pg's min/max, but pg's depends on how it was compiled 
(--enable-integer-datetimes).  So how do you pick which one?  You've got 
to pick the one with the smallest range, so it fits inside the other's 
range, which kind of sucks because then you have a special magic value 
that isn't even at the extremes of the type range.  The user level 
code to manipulate such a thing will certainly be ugly.

Kris Jurka





view thread (27+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0501130909440.22366@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0501130909440.22366@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0501130909440.22366@leary.csoft.net

 · 

reply

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: books@ejurka.com, o.siegmar@vitrado.de
  Subject: Re: Problems with infinity
  In-Reply-To: <Pine.BSO.4.56.0501130909440.22366@leary.csoft.net>
  References: <200501131419.00993.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501130835370.26@leary.csoft.net> <200501131452.31209.o.siegmar@vitrado.de> <Pine.BSO.4.56.0501130909440.22366@leary.csoft.net>

* 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