Remove SQL-compatibility function cardinality(). It is not exactly clear
authorTom Lane
Thu, 9 Apr 2009 17:39:50 +0000 (17:39 +0000)
committerTom Lane
Thu, 9 Apr 2009 17:39:50 +0000 (17:39 +0000)
how this ought to behave for multi-dimensional arrays.  Per discussion,
not having it at all seems better than having it with what might prove
to be the wrong behavior.  We can always add it later when we have consensus
on the correct behavior.

doc/src/sgml/func.sgml
doc/src/sgml/release.sgml
src/backend/utils/adt/arrayfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/array.h
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql

index f42f3e9341217695ca665f1b24dbf61a419a64ee..5c3580aec68bd1cdc478bef0c20ff0a51135187d 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
  
   Functions and Operators
@@ -9368,9 +9368,6 @@ SELECT NULLIF(value, '(none)') ...
  
     array_upper
   
-  
-    cardinality
-  
   
     string_to_array
   
@@ -9503,19 +9500,6 @@ SELECT NULLIF(value, '(none)') ...
         array_upper(ARRAY[1,2,3,4], 1)
         4
        
-       
-        
-         
-          cardinality(anyarray)
-         
-        
-        int
-        returns the length of the first dimension of the array
-        (special case of array_length for SQL
-        compatibility)
-        cardinality(array[1,2,3])
-        3
-       
        
         
          
index acd2786caad4a817175ef443bf58e9e16d348ebe..a13828d52c91e50c55dc809a154f2b6f950d6b91 100644 (file)
@@ -1,4 +1,4 @@
-
+