1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Remove SQL-compatibility function cardinality(). It is not exactly clear

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.
This commit is contained in:
Tom Lane
2009-04-09 17:39:50 +00:00
parent 78f58f0f70
commit 06e2757277
8 changed files with 7 additions and 83 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.475 2009/04/07 00:31:25 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.476 2009/04/09 17:39:47 tgl Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
@ -9368,9 +9368,6 @@ SELECT NULLIF(value, '(none)') ...
<indexterm>
<primary>array_upper</primary>
</indexterm>
<indexterm>
<primary>cardinality</primary>
</indexterm>
<indexterm>
<primary>string_to_array</primary>
</indexterm>
@ -9503,19 +9500,6 @@ SELECT NULLIF(value, '(none)') ...
<entry><literal>array_upper(ARRAY[1,2,3,4], 1)</literal></entry>
<entry><literal>4</literal></entry>
</row>
<row>
<entry>
<literal>
<function>cardinality</function>(<type>anyarray</type>)
</literal>
</entry>
<entry><type>int</type></entry>
<entry>returns the length of the first dimension of the array
(special case of <function>array_length</function> for SQL
compatibility)</entry>
<entry><literal>cardinality(array[1,2,3])</literal></entry>
<entry><literal>3</literal></entry>
</row>
<row>
<entry>
<literal>

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.624 2009/04/07 21:30:01 momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.625 2009/04/09 17:39:47 tgl Exp $ -->
<!--
Typical markup:
@ -1624,11 +1624,6 @@ do it for earlier branch release files.
of an array for the specified dimensions (Jim Nasby, Robert
Haas, Peter Eisentraut)
</para>
<para>
Also add identically-functioning <acronym>SQL</>-standard
function <function>cardinality()</>.
</para>
</listitem>
<listitem>