Update ANSI INTERVAL section:

< * Add support for ANSI time INTERVAL syntax, INTERVAL '1 2:03:04' DAY TO SECOND
< * Add support for ANSI date INTERVAL syntax, INTERVAL '20-6' YEAR TO MONTH
< * Process mixed ANSI/PG INTERVAL syntax, and round value to requested precision
<
<   Interpret INTERVAL '1 year' MONTH as CAST (INTERVAL '1 year' AS INTERVAL
<   MONTH), and this should return '12 months'
<
< * Interpret INTERVAL '1:30' MINUTE TO SECOND as '1 minute 30 seconds'
> * Add ANSI INTERVAL handling
> 	o Add support for day-time syntax, INTERVAL '1 2:03:04'
> 	  DAY TO SECOND
> 	o Add support for year-month syntax, INTERVAL '50-6' YEAR TO MONTH
> 	o Process mixed ANSI/PG syntax, and round value to requested
> 	  precision or generate an error
> 	o Interpret INTERVAL '1 year' MONTH as CAST (INTERVAL '1 year' AS
> 	  INTERVAL MONTH), and this should return '12 months'
> 	o Interpret INTERVAL '1:30' MINUTE TO SECOND as '1 minute 30 seconds'
> 	o Support precision, CREATE TABLE foo (a INTERVAL MONTH(3))
This commit is contained in:
Bruce Momjian 2005-03-23 21:10:02 +00:00
parent 87ba04eeaf
commit a15699b9e0

View File

@ -2,7 +2,7 @@
TODO list for PostgreSQL TODO list for PostgreSQL
======================== ========================
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
Last updated: Wed Mar 23 12:05:12 EST 2005 Last updated: Wed Mar 23 16:09:58 EST 2005
The most recent version of this document can be viewed at the PostgreSQL web The most recent version of this document can be viewed at the PostgreSQL web
site, http://www.PostgreSQL.org. site, http://www.PostgreSQL.org.
@ -181,14 +181,16 @@ Data Types
zero the bits zero the bits
* Prevent INET cast to CIDR from droping netmask, SELECT '1.1.1.1'::inet::cidr * Prevent INET cast to CIDR from droping netmask, SELECT '1.1.1.1'::inet::cidr
* Add 'tid != tid ' operator for use in corruption recovery * Add 'tid != tid ' operator for use in corruption recovery
* Add support for ANSI time INTERVAL syntax, INTERVAL '1 2:03:04' DAY TO SECOND * Add ANSI INTERVAL handling
* Add support for ANSI date INTERVAL syntax, INTERVAL '20-6' YEAR TO MONTH o Add support for day-time syntax, INTERVAL '1 2:03:04'
* Process mixed ANSI/PG INTERVAL syntax, and round value to requested precision DAY TO SECOND
o Add support for year-month syntax, INTERVAL '50-6' YEAR TO MONTH
Interpret INTERVAL '1 year' MONTH as CAST (INTERVAL '1 year' AS INTERVAL o Process mixed ANSI/PG syntax, and round value to requested
MONTH), and this should return '12 months' precision or generate an error
o Interpret INTERVAL '1 year' MONTH as CAST (INTERVAL '1 year' AS
* Interpret INTERVAL '1:30' MINUTE TO SECOND as '1 minute 30 seconds' INTERVAL MONTH), and this should return '12 months'
o Interpret INTERVAL '1:30' MINUTE TO SECOND as '1 minute 30 seconds'
o Support precision, CREATE TABLE foo (a INTERVAL MONTH(3))
* ARRAYS * ARRAYS
o Allow NULLs in arrays o Allow NULLs in arrays