-
+
The Information Schema
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.array_type_identifier))
+ = (e.object_catalog, e.object_schema, e.object_name, e.object_type, e.dtd_identifier))
WHERE c.table_schema = '...' AND c.table_name = '...'
ORDER BY c.ordinal_position;
|
- array_type_identifier
+ dtd_identifier
sql_identifier
The identifier of the data type descriptor of the array being
- described. Use this to join with the
- dtd_identifier columns of other information
- schema views.
+ described
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.
-