Add item:
authorBruce Momjian
Sat, 25 Jun 2005 01:32:02 +0000 (01:32 +0000)
committerBruce Momjian
Sat, 25 Jun 2005 01:32:02 +0000 (01:32 +0000)
> * Add NUMERIC division operator that doesn't round?
>
>   Currently NUMERIC _rounds_ the result to the specified precision.
>   This means division can return a result that multiplied by the
>   divisor is greater than the dividend, e.g. this returns a value > 10:
>
>     SELECT (10::numeric(2,0) / 6::numeric(2,0))::numeric(2,0) * 6;
>
>   The positive modulus result returned by NUMERICs might be considered
>   inaccurate, in one sense.
>

doc/TODO
doc/src/FAQ/TODO.html

index 73e4fce37bd43c5e60dcef809de927d00836f02e..eb3dba75f72494d1d31ce0afc853dca4ce271d07 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -2,7 +2,7 @@
 PostgreSQL TODO List
 ====================
 Current maintainer:    Bruce Momjian ([email protected])
-Last updated:      Fri Jun 24 17:28:23 EDT 2005
+Last updated:      Fri Jun 24 21:32:02 EDT 2005
 
 The most recent version of this document can be viewed at
 http://www.postgresql.org/docs/faqs.TODO.html.
@@ -152,6 +152,17 @@ Data Types
 
 * Remove Money type, add money formatting for decimal type
 * Change NUMERIC to enforce the maximum precision, and increase it
+* Add NUMERIC division operator that doesn't round?
+
+  Currently NUMERIC _rounds_ the result to the specified precision.  
+  This means division can return a result that multiplied by the 
+  divisor is greater than the dividend, e.g. this returns a value > 10:
+
+    SELECT (10::numeric(2,0) / 6::numeric(2,0))::numeric(2,0) * 6;
+
+  The positive modulus result returned by NUMERICs might be considered
+  inaccurate, in one sense.
+
 * Add function to return compressed length of TOAST data values
 * Allow INET subnet tests using non-constants to be indexed
 * Add transaction_timestamp(), statement_timestamp(), clock_timestamp()
index e17f3bbb9367465859c4f9dc4871b4246c6c0bec..db637523eba6bdda38c3462be65edbf792e38349 100644 (file)
@@ -8,7 +8,7 @@
 
 

PostgreSQL TODO List

 

Current maintainer:     Bruce Momjian ([email protected])

-Last updated:           Fri Jun 24 17:28:23 EDT 2005
+Last updated:           Fri Jun 24 21:32:02 EDT 2005
 

 

The most recent version of this document can be viewed at

 http://www.postgresql.org/docs/faqs.TODO.html.
@@ -142,7 +142,19 @@ first.
 
       
  • Remove Money type, add money formatting for decimal type
  •    
  • Change NUMERIC to enforce the maximum precision, and increase it
  • -  
  • Add function to return compressed length of TOAST data values
  • +  
  • Add NUMERIC division operator that doesn't round?
  • +

      Currently NUMERIC _rounds_ the result to the specified precision.  

    +  This means division can return a result that multiplied by the 
    +  divisor is greater than the dividend, e.g. this returns a value > 10:
    +

    +
    +

        SELECT (10::numeric(2,0) / 6::numeric(2,0))::numeric(2,0) * 6;

    +

    +

      The positive modulus result returned by NUMERICs might be considered

    +  inaccurate, in one sense.
    +

    +
      +  
    • Add function to return compressed length of TOAST data values
    •    
    • Allow INET subnet tests using non-constants to be indexed
    •    
    • Add transaction_timestamp(), statement_timestamp(), clock_timestamp()
    •    functionality