From e5b50d0ffb72935b844a2d78b6f81e3b6c85cba9 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 9 Jun 2011 07:24:14 +0300 Subject: [PATCH] Fix documentation of information_schema.element_types The documentation of the columns collection_type_identifier and dtd_identifier was wrong. This effectively reverts commits 8e1ccad51901e83916dae297cd9afa450957a36c and 57352df66d3a0885899d39c04c067e63c7c0ba30 and updates the name array_type_identifier (the name in SQL:1999) to collection_type_identifier. closes bug #5926 --- doc/src/sgml/information_schema.sgml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/information_schema.sgml b/doc/src/sgml/information_schema.sgml index 52bae2e1ded..f7e056df896 100644 --- a/doc/src/sgml/information_schema.sgml +++ b/doc/src/sgml/information_schema.sgml @@ -1876,7 +1876,7 @@ SELECT c.column_name, c.data_type, e.data_type AS element_type FROM information_schema.columns c LEFT JOIN information_schema.element_types e ON ((c.table_catalog, c.table_schema, c.table_name, 'TABLE', c.dtd_identifier) - = (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.dtd_identifier)) + = (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.collection_type_identifier)) WHERE c.table_schema = '...' AND c.table_name = '...' ORDER BY c.ordinal_position; @@ -1936,11 +1936,13 @@ ORDER BY c.ordinal_position; - dtd_identifier + collection_type_identifier sql_identifier The identifier of the data type descriptor of the array being - described + described. Use this to join with the + dtd_identifier columns of other information + schema views. @@ -2094,6 +2096,15 @@ ORDER BY c.ordinal_position; cardinal_number Always null, because arrays always have unlimited maximum cardinality in PostgreSQL + + + dtd_identifier + sql_identifier + + An identifier of the data type descriptor of the element. This + is currently not useful. + +