Re: date_part function - Mailing list pgsql-novice

From Tom Lane
Subject Re: date_part function
Date
Msg-id 22789.978123218@sss.pgh.pa.us
Whole thread Raw
In response to date_part function  (John Burski <John.Burski@911ep.com>)
List pgsql-novice
John Burski <John.Burski@911ep.com> writes:
> I submitted the following query:
>      select date_part('dow', timestamp 'now');
> and received the following results:
>      ERROR:  Function 'date_part(text, timestamp)' does not exist
>       Unable to identify a function which satisfies the given
>      argument types
>       You will have to retype your query using explicit typecasts

Odd.  It works fine for me.  What do you get from psql's "\df date_part"?

            regards, tom lane

pgsql-novice by date:

Previous
From: David Merrill
Date:
Subject: UUID generation
Next
From: John Burski
Date:
Subject: Re: date_part function