Re: [HACKERS] Re: [DOCS] Reference Manual - Mailing list pgsql-hackers

From Thomas G. Lockhart
Subject Re: [HACKERS] Re: [DOCS] Reference Manual
Date
Msg-id 3522667E.8B821829@alumni.caltech.edu
Whole thread Raw
In response to Re: [HACKERS] Re: [DOCS] Reference Manual  ("Jose' Soares Da Silva" <sferac@proxy.bazzanese.com>)
Responses Re: [HACKERS] Re: [DOCS] Reference Manual
List pgsql-hackers
> > tgl=> select extract (year from date 'now');
> > date_part
> > ---------
> >      1998
> > (1 row)
> It doesn't work for me.  Why ??
> psql=> select extract (year from current_timestamp);
> ERROR:  function date_part(unknown, timestamp) does not exist

What version of Postgres are you running? Something may have gone a
little screwy in v6.3.1, since the numerology regression test has been
reported to have failed with it unable to compare an int4 to a float8.

It must work for some installations though since they wouldn't have
released without a clean regression test, right? :)

I'm still developing with v6.3 because I'm in the middle of working on
the automatic type conversion stuff...

                      - Tom

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Port Bug Report: int2 negative numbers not parsed correctly
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Memory leak while creating indices?