Set user_defined_types.data_type to null

On re-reading the standard, this field is only used for distinct or
reference types.
This commit is contained in:
Peter Eisentraut 2011-07-04 23:09:42 +03:00
parent e24662c423
commit 6fbc80349f
2 changed files with 2 additions and 6 deletions

View file

@ -5925,11 +5925,7 @@ ORDER BY c.ordinal_position;
<row>
<entry><literal>data_type</literal></entry>
<entry><type>character_data</type></entry>
<entry>
Always <literal>USER-DEFINED TYPE</literal> (for joining
against <literal>object_type</literal> columns in other
views)
</entry>
<entry>Applies to a feature not available in <productname>PostgreSQL</></entry>
</row>
<row>

View file

@ -2198,7 +2198,7 @@ CREATE VIEW user_defined_types AS
CAST(null AS sql_identifier) AS ordering_routine_schema,
CAST(null AS sql_identifier) AS ordering_routine_name,
CAST(null AS character_data) AS reference_type,
CAST('USER-DEFINED TYPE' AS character_data) AS data_type,
CAST(null AS character_data) AS data_type,
CAST(null AS cardinal_number) AS character_maximum_length,
CAST(null AS cardinal_number) AS character_octet_length,
CAST(null AS sql_identifier) AS character_set_catalog,