Skip to content

Commit ffa653b

Browse files
committed
Fix documentation of information_schema.element_types
The documentation of the columns collection_type_identifier and dtd_identifier was wrong. This effectively reverts commits 8e1ccad and 57352df and updates the name array_type_identifier (the name in SQL:1999) to collection_type_identifier. closes bug #5926
1 parent cb252c2 commit ffa653b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

doc/src/sgml/information_schema.sgml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@
18841884
SELECT c.column_name, c.data_type, e.data_type AS element_type
18851885
FROM information_schema.columns c LEFT JOIN information_schema.element_types e
18861886
ON ((c.table_catalog, c.table_schema, c.table_name, 'TABLE', c.dtd_identifier)
1887-
= (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.dtd_identifier))
1887+
= (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.collection_type_identifier))
18881888
WHERE c.table_schema = '...' AND c.table_name = '...'
18891889
ORDER BY c.ordinal_position;
18901890
</programlisting>
@@ -1944,11 +1944,13 @@ ORDER BY c.ordinal_position;
19441944
</row>
19451945

19461946
<row>
1947-
<entry><literal>dtd_identifier</literal></entry>
1947+
<entry><literal>collection_type_identifier</literal></entry>
19481948
<entry><type>sql_identifier</type></entry>
19491949
<entry>
19501950
The identifier of the data type descriptor of the array being
1951-
described
1951+
described. Use this to join with the
1952+
<literal>dtd_identifier</literal> columns of other information
1953+
schema views.
19521954
</entry>
19531955
</row>
19541956

@@ -2103,6 +2105,14 @@ ORDER BY c.ordinal_position;
21032105
<entry>Always null, because arrays always have unlimited maximum cardinality in <productname>PostgreSQL</></entry>
21042106
</row>
21052107

2108+
<row>
2109+
<entry><literal>dtd_identifier</literal></entry>
2110+
<entry><type>sql_identifier</type></entry>
2111+
<entry>
2112+
An identifier of the data type descriptor of the element. This
2113+
is currently not useful.
2114+
</entry>
2115+
</row>
21062116
</tbody>
21072117
</tgroup>
21082118
</table>

0 commit comments

Comments
 (0)