Re: Suggestions for 7.3 date handling - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Suggestions for 7.3 date handling
Date
Msg-id GNELIHDDFBOCMGBFGEFOEEEOCBAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: Suggestions for 7.3 date handling  (Thomas Lockhart <lockhart@fourpalms.org>)
Responses Re: Suggestions for 7.3 date handling  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Suggestions for 7.3 date handling  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
> > How about adding these for 7.3?  Can this be put in the TODO?
> >
> > EXTRACT(TIMESTAMP FROM epoch);
> > EXTRACT(DATE FROM epoch);
> > EXTRACT(DOW FROM epoch);
> > ...
>
> What do you want this to do exactly?

OK, we have some legacy columns that use int4 as their type.  It would be
nice to be able to do easy date handling with them.

eg. EXTRACT(TIMESTAMP FROM EPOCH '1081237846')

Chris



pgsql-hackers by date:

Previous
From: Haroldo Stenger
Date:
Subject: Re: Threaded PosgreSQL server
Next
From: Haroldo Stenger
Date:
Subject: Re: Threaded PosgreSQL server