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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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