From: Julius Tuskenis <julius@nsoft.lt>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: what is the origin of postgreSQL time
Date: Mon, 31 Mar 2008 18:39:58 +0300
Message-ID: <47F105CE.3010003@nsoft.lt> (raw)
In-Reply-To: <27356.1206973434@sss.pgh.pa.us>
References: <47F0A958.2040608@nsoft.lt>
<27356.1206973434@sss.pgh.pa.us>
Thank you for your answer.
I've noticed that statement SELECT current_timestamp AT TIME ZONE
'Europe/Vilnius' returns me an error:
ERROR: time zone "Europe/Vilnius" not recognized
SQL state: 22023
Time zone Europe/Vilnius is the systems timezone. I checked in
pgsql/share/timezone the file is in there. What could be wrong?
Julius Tuskenis
Tom Lane rašė:
> Julius Tuskenis <julius@nsoft.lt> writes:
>
>> I have problem with postgreSQL current_timestramp. Where does it get its
>> value, because it doesnt match system time. The problem appeared after
>> this saturday-sunday night and is connected somehow with the daylight
>> saving. Now "date" on the server returns good value, but the SELECT
>> current_timestmap is 1 hour late.
>>
>
>
>> Postgresql 8.1.4
>>
> ^^^^^
>
> I haven't checked the timezone history, but 8.1.4 was quite a few
> timezone updates ago. Would a DST switch have happened this weekend
> under old law where you live? If so, you need to update to a more
> modern set of timezone files. Look under (probably, I don't know
> gentoo) /usr/share/postgresql/timezone/
>
> regards, tom lane
>
>
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: julius@nsoft.lt, tgl@sss.pgh.pa.us
Subject: Re: what is the origin of postgreSQL time
In-Reply-To: <47F105CE.3010003@nsoft.lt>
* 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