Re: Timestamp with time zone change (error) in 7.3.2?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Doug Silver <dsilver(at)urchin(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Timestamp with time zone change (error) in 7.3.2?
Date: 2003-04-02 20:48:02
Message-ID: 22954.1049316482@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

Doug Silver <dsilver(at)urchin(dot)com> writes:
> On Wednesday 02 April 2003 11:35 am, Tom Lane wrote:
>> Doug Silver <dsilver(at)urchin(dot)com> writes:
>>> This does not affect tables with 'timestamp without time zone'. I find
>>> it interesting that it changes the time to 1 minute before midnight.
>>
>> I can assure you it doesn't do that for other people. What platform are
>> you on, how did you build Postgres exactly, and what timezone are you
>> using?

> [ vanilla-looking details ]

I'm stumped. You ought to be getting

regression=# select * from test2;
id | date_entered
----+------------------------
4 | 2003-04-01 00:00:00-08
3 | 2003-04-01 00:00:00-08
(2 rows)

which is what I get on 7.3.2 with timezone set to 'PST8PDT'. (It might
be worth checking that that string is actually valid in FreeBSD, though.
Try, at the shell,
export TZ=GMT
date
export TZ=PST8PDT
date
and check that the reported time adjusts to GMT and local time
correctly.)

Do you have the ability/willingness to dig into it with a debugger and
see where the conversion is going wrong? Alternatively, if you are
willing to provide access to your machine, someone else (like me) could
look into it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Brown 2003-04-02 20:55:10 Re: Detecting corrupted pages earlier
Previous Message Kevin Brown 2003-04-02 20:44:47 Re: Detecting corrupted pages earlier

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-04-02 23:12:45 Re: errors using COPY from MySQL data
Previous Message Doug Silver 2003-04-02 20:05:47 Re: Timestamp with time zone change (error) in 7.3.2?