Skip site navigation (1) Skip section navigation (2)

Re: Re: timestamps cannot be created without time zones

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rainer Mager" <rmager(at)vgkk(dot)com>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Re: timestamps cannot be created without time zones
Date: 2001-09-14 14:41:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
"Rainer Mager" <rmager(at)vgkk(dot)com> writes:
>> Apparently at ever older date (around
>> 10,000 BC I
>> believe) the seconds are dropped.

You do realize that timestamps are floating point seconds relative to AD
2000, and so the accuracy decreases as you get further away from current

>> The output from the code is (the computer's time was 03:23:49):
>> 1850-Jan-01 03:23:49 JST
>> 1850-Jan-01 06:23:49 JST

I don't believe that Postgres will associate any timezone at all with
timestamps outside the range of the underlying OS' timezone database.
I get just

regression=# select '1850-Jan-01 03:23:49'::timestamp;
 1850-01-01 03:23:49
(1 row)

I'd say the problem here is on the Java side: something on the client
side is inappropriately attaching a timezone to a value that should not
have one.  Possibly you should take this up on pgsql-jdbc; or perhaps
it's a problem with the Java datetime datatypes you are using.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: John SummerfieldDate: 2001-09-15 12:47:28
Subject: Performance and 72.devel
Previous:From: pgsql-bugsDate: 2001-09-14 08:56:38
Subject: Bug #451: Multiple Inserts where should be unique

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group