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

Re: BUG #1618: EXTRACTing EPOCH from TIME WITH TIME ZONE is broken

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dennis Vshivkov <walrus(at)amur(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1618: EXTRACTing EPOCH from TIME WITH TIME ZONE is broken
Date: 2005-04-23 17:12:00
Message-ID: 10618.1114276320@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Dennis Vshivkov <walrus(at)amur(dot)ru> writes:
> On Sat, Apr 23, 2005 at 01:58:13AM -0400, Tom Lane wrote:
>>> Time zone component should be added, not subtracted.

>>> Why?

> [ good arguments snipped ]

OK, I'm convinced --- particularly by the point that no place else in
the backend thinks "timetz->time - timetz->zone" is meaningful.

Anyone not think that this should be not only changed, but back-patched
into older branches?  It seems clearly a thinko.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2005-04-23 17:46:23
Subject: Re: V2 protocol -> 8.1 server
Previous:From: Dennis VshivkovDate: 2005-04-23 15:27:14
Subject: Re: BUG #1618: EXTRACTing EPOCH from TIME WITH TIME ZONE is broken

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