From: Kris Jurka <books@ejurka.com>
To: John Pagakis <thebfh@toolsmythe.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Issue with now() within a transaction in pg74.213.jdbc.jar
Date: Fri, 2 Jul 2004 05:24:54 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407020507250.28923@leary.csoft.net> (raw)
In-Reply-To: <KKEBKDPPLALEFHBEAOCCAELODPAA.thebfh@toolsmythe.com>
References: <KKEBKDPPLALEFHBEAOCCAELODPAA.thebfh@toolsmythe.com>
On Thu, 1 Jul 2004, John Pagakis wrote:
> Odd though. There seems to be a bug in the cygwin implementation of
> postgres. Tim McAuley ran into the same problem I did and posted here:
>
> http://groups.google.com/groups?q=cast+timeofday+timestamp&hl=en&lr=&ie=UTF-
> 8&selm=bgdif2%2414kk%241%40FreeBSD.csie.NCTU.edu.tw&rnum=5
>
> To save you from having to follow the link - an attempt to cast TIMEOFDAY()
> to TIMESTAMP in cygwin's implementation results in:
>
> ERROR: Bad timestamp external representation 'Thu Jul 01 22:29:25.402375
> 2004 USMST'
>
Well the JDBC list isn't the best place to get help on this, but I don't
see a problem here, so I imagine it is dependent on your timezone. (I'm
PDT). Postgresql has some confusion on timezone names because it has an
internal list of timezones, but also uses the system libraries to
manipulate them as well. This will be rectified in 7.5 when all timezone
handling is moved under the control of postgresql libraries, but for now I
will note that USMST does not appear in src/backend/utils/adt/datetime.c.
Also notice that the original bug report you cite shows different timezone
results for timeofday. cygwin shows GMTDT while linux shows IST.
Checking datetime.c again IST is included, but GMTDT is not.
Kris Jurka
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, thebfh@toolsmythe.com
Subject: Re: Issue with now() within a transaction in pg74.213.jdbc.jar
In-Reply-To: <Pine.BSO.4.56.0407020507250.28923@leary.csoft.net>
References: <KKEBKDPPLALEFHBEAOCCAELODPAA.thebfh@toolsmythe.com> <Pine.BSO.4.56.0407020507250.28923@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