Re: BUG #4377: casting result of timeofday() to timestamp fails in some timezones

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Todd A(dot) Cook" <tcook(at)blackducksoftware(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4377: casting result of timeofday() to timestamp fails in some timezones
Date: 2008-09-06 00:42:44
Message-ID: 200809060042.m860gi323329@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Todd A. Cook wrote:
> Tom Lane wrote:
> >
> > In the meantime, why aren't you just using clock_timestamp()?
> > timeofday() is deprecated.
>
> I am using clock_timestamp() now. The use of timeofday() was from the era
> when 8.0 was hot stuff.
>
> BTW, the word "deprecated" does not appear on the docs page where timeofday()
> is listed (http://www.postgresql.org/docs/8.3/static/functions-datetime.html)
> and there doesn't seem to be anything in the context of the 3 occurrences of
> "timeofday" that would imply it is deprecated.

Uh, we will probably never remove timeofday() but the new functions are
clearer.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2008-09-06 01:56:24 Re: BUG #4402: Column expansion: date comes wthout a cast
Previous Message Bruce Momjian 2008-09-05 23:53:52 Re: BUG #4374: pg_restore does not restore public schema comment