Re: BUG #5132: Invalid Function

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Geok Hua Yap <geokhua8888(at)yahoo(dot)com(dot)sg>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5132: Invalid Function
Date: 2009-10-22 15:10:49
Message-ID: 603c8f070910220810g46f3342w98769a77e7f96ec1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Oct 22, 2009 at 3:23 AM, Geok Hua Yap <geokhua8888(at)yahoo(dot)com(dot)sg> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5132
> Logged by:          Geok Hua Yap
> Email address:      geokhua8888(at)yahoo(dot)com(dot)sg
> PostgreSQL version: 8.3.1
> Operating system:   CentOS 5.2
> Description:        Invalid Function
> Details:
>
> select timeofday()::timestamp;
> ERROR:  invalid input syntax for type timestamp: "Thu Oct 22 15:16:25.113963
> 2009 SGT"

This is not a bug. timeofday() returns text - maybe you want clock_timestamp()?

http://www.postgresql.org/docs/current/interactive/functions-datetime.html

...Robert

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-10-22 15:20:28 Re: BUG #5132: Invalid Function
Previous Message flamin dragon 2009-10-22 14:47:51 Re: BUG #5130: Failed to run initdb:1