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

Re: what is the origin of postgreSQL time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Julius Tuskenis <julius(at)nsoft(dot)lt>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: what is the origin of postgreSQL time
Date: 2008-03-31 14:23:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Julius Tuskenis <julius(at)nsoft(dot)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

In response to


pgsql-admin by date

Next:From: Julius TuskenisDate: 2008-03-31 15:39:58
Subject: Re: what is the origin of postgreSQL time
Previous:From: Vladimir RusinovDate: 2008-03-31 13:05:41
Subject: Re: log_min_duration_statement log parsing

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