Fwd: Re: [GENERAL] Extracting time from timestamp - Mailing list pgsql-hackers

From Shridhar Daithankar
Subject Fwd: Re: [GENERAL] Extracting time from timestamp
Date
Msg-id 200303211215.13495.shridhar_daithankar@persistent.co.in
Whole thread Raw
Responses Re: Fwd: Re: [GENERAL] Extracting time from timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Friday 21 Mar 2003 11:38 am, Christopher Kings-Lynne wrote:
> > phd=# select time(abstime(timestamp 'now')) from bookings;
> > ERROR:  parser: parse error at or near "abstime" at character 13
> > phd=# select time(timestamp 'now') from bookings;
> > ERROR:  parser: parse error at or near "timestamp" at character 13
> > phd=# select version();
> >                                version
>
> Try:
>
> select "time"(abstime(timestamp 'now')) from bookings;
> select "time"(timestamp 'now') from bookings;

First of all, thanks, it worked..

And What's so holy about "" if it is a function?

That was bummer, I admit.. Spent almost a day on it..
Shridhar

P.S. Sorry, I didn't realized that I handn' CC hackers..



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: A bad behavior under autocommit off mode
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: [GENERAL] Extracting time from timestamp