Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Brandon Aiken
roy Sent: Friday, December 15, 2006 5:18 PM To: Tom Lane Cc: Richard Huxton; Randy Shelley; pgsql-general@postgresql.org Subject: Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE > Richard Troy <[EMAIL PROTECTED]> writes: > > See my post from a few minutes ago, but simply put, time/date is at l

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > That said, nobody has yet assured me that when I give a timestamp I get it > back unmolested. Well, as far as the backend is concerned you do get it back unmolested (up to the limits of float roundoff error, if you use float timestamps): * unconditional

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Alvaro Herrera
Richard Troy wrote: > I'd appreciate a clean yes/no; From a Java application, throught PG in > both directions, the same timestamp comes back that was handed to the JDBC > driver so long as it's stored in a "timestamp without time zone" > attribute, nomatter neither where on earth the insert/upda

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
> Richard Troy <[EMAIL PROTECTED]> writes: > > See my post from a few minutes ago, but simply put, time/date is at least > > as challenging as money or multibyte character. And, simply put, the > > Postgres implementation of timezone is INSUFFICIENT. > > Really? We do all the things you have list

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > See my post from a few minutes ago, but simply put, time/date is at least > as challenging as money or multibyte character. And, simply put, the > Postgres implementation of timezone is INSUFFICIENT. Really? We do all the things you have listed, and more

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Martijn van Oosterhout
On Fri, Dec 15, 2006 at 12:10:24PM -0800, Richard Troy wrote: > > I think your fundamental error is in using timestamp without time zone > > in the database. Try with-time-zone if you want consistent results > > across clients in different zones. > > I sure hope there's no issue with using timest

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
On Wed, 13 Dec 2006, Richard Huxton wrote: > Randy Shelley wrote: > > I get different result if I query it from my workstation(US/Easter > > timezone) and from the server (GMT timezone). > > > A data type of timestamp without time zone should not do any > > conversions. The java.sql.Timestamp doe

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > I'm not fully caught up with my Readings In Postgres, but this post caught > my eye and raised a concern... AFAIK, all the reasons you enumerate are good reasons to delegate the problem to a timestamp WITH time zone column. > First, you need at least min

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
Hi Tom, Randy, et al, I'm not fully caught up with my Readings In Postgres, but this post caught my eye and raised a concern... Tom Lane <[EMAIL PROTECTED]> wrote: > "Randy Shelley" <[EMAIL PROTECTED]> writes: > > The java.sql.Timestamp does not store any timezone info, just nano seconds > > fro

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-12 Thread Richard Huxton
Randy Shelley wrote: I get different result if I query it from my workstation(US/Easter timezone) and from the server (GMT timezone). A data type of timestamp without time zone should not do any conversions. The java.sql.Timestamp does not store any timezone info, just nano seconds from a dat

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-12 Thread Tom Lane
"Randy Shelley" <[EMAIL PROTECTED]> writes: > The java.sql.Timestamp does not store any timezone info, just nano seconds > from a date. One would hope that it's implicitly referenced to GMT, though, not some free-floating value that means who-knows-what. I think your fundamental error is in using

Re: [GENERAL] timestamp without time zone format

2004-06-23 Thread Richard Huxton
Antony Paul wrote: Hi all What is the last value in a column of data type timestamp without time zone. A sample data is 2004-06-22 18:07:00.486027. What does 486027 mean Milliseconds or seconds since midnight or something else ? It's fractional seconds, but your clock is unlikely to be that a