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

From Christopher Kings-Lynne
Subject Re: [GENERAL] Extracting time from timestamp
Date
Msg-id 09b301c2ef70$49c443d0$6500a8c0@fhp.internal
Whole thread Raw
In response to Re: [GENERAL] Extracting time from timestamp  ("Shridhar Daithankar<shridhar_daithankar@persistent.co.in>" <shridhar_daithankar@persistent.co.in>)
Responses Re: [GENERAL] Extracting time from timestamp
List pgsql-hackers
> 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;

Chris


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: A bad behavior under autocommit off mode
Next
From: Tom Lane
Date:
Subject: Re: A bad behavior under autocommit off mode