From: | "Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in>" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Extracting time from timestamp |
Date: | 2003-03-21 06:13:29 |
Message-ID: | 200303211143.29811.shridhar_daithankar@persistent.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general 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
From | Date | Subject | |
---|---|---|---|
Next Message | Georgi Chorbadzhiyski | 2003-03-21 10:18:01 | rules problem |
Previous Message | Tom Lane | 2003-03-21 06:12:39 | Re: 32/64-bit transaction IDs? |
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2003-03-21 06:31:36 | Re: [OpenFTS-general] New version of tsearch V2 ! |
Previous Message | Bruce Momjian | 2003-03-21 06:12:30 | Re: A bad behavior under autocommit off mode |