Skip to content

Commit e5b50d0

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 f604891 commit e5b50d0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

doc/src/sgml/information_schema.sgml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@
18761876
SELECT c.column_name, c.data_type, e.data_type AS element_type
18771877
FROM information_schema.columns c LEFT JOIN information_schema.element_types e
18781878
ON ((c.table_catalog, c.table_schema, c.table_name, 'TABLE', c.dtd_identifier)
1879-
= (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.dtd_identifier))
1879+
= (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.collection_type_identifier))
18801880
WHERE c.table_schema = '...' AND c.table_name = '...'
18811881
ORDER BY c.ordinal_position;
18821882
</programlisting>
@@ -1936,11 +1936,13 @@ ORDER BY c.ordinal_position;
19361936
</row>
19371937

19381938
<row>
1939-
<entry><literal>dtd_identifier</literal></entry>
1939+
<entry><literal>collection_type_identifier</literal></entry>
19401940
<entry><type>sql_identifier</type></entry>
19411941
<entry>
19421942
The identifier of the data type descriptor of the array being
1943-
described
1943+
described. Use this to join with the
1944+
<literal>dtd_identifier</literal> columns of other information
1945+
schema views.
19441946
</entry>
19451947
</row>
19461948

@@ -2094,6 +2096,15 @@ ORDER BY c.ordinal_position;
20942096
<entry><type>cardinal_number</type></entry>
20952097
<entry>Always null, because arrays always have unlimited maximum cardinality in <productname>PostgreSQL</></entry>
20962098
</row>
2099+
2100+
<row>
2101+
<entry><literal>dtd_identifier</literal></entry>
2102+
<entry><type>sql_identifier</type></entry>
2103+
<entry>
2104+
An identifier of the data type descriptor of the element. This
2105+
is currently not useful.
2106+
</entry>
2107+
</row>
20972108
</tbody>
20982109
</tgroup>
20992110
</table>

0 commit comments

Comments
 (0)