Re: [HACKERS] Extracting time from timestamp

From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: <shridhar_daithankar(at)persistent(dot)co(dot)in>, "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Extracting time from timestamp
Date: 2003-03-21 06:08:27
Message-ID: 09b301c2ef70$49c443d0$6500a8c0@fhp.internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-03-21 06:12:39 Re: 32/64-bit transaction IDs?
Previous Message Shridhar Daithankar<shridhar_daithankar@persistent.co.in> 2003-03-21 05:57:53 Re: Extracting time from timestamp

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-03-21 06:10:03 Re: A bad behavior under autocommit off mode
Previous Message Bruce Momjian 2003-03-21 06:07:12 Re: A bad behavior under autocommit off mode