Updating statistics for columns with user-defined data types
Programmers can write functions that gather statistics for columns with user-defined data types. You can store the data distributions for user-defined data types in an sbspace.
About this task
Because information about the nature and use of a user-defined data type (UDT) is not available to the database server, it cannot collect the colmin and colmax column of the syscolumns system catalog table for user-defined data types. To gather statistics for columns with user-defined data types, programmers must write functions that extend the UPDATE STATISTICS statement. For more information, see the performance chapter in HCL OneDB™ User-Defined Routines and Data Types Developer's Guide.
Because the data distributions for user-defined data types can be large, you can optionally store them in an sbspace instead of the sysdistrib system catalog table.
To store data distributions for user-defined data types in an sbspace:
Procedure
Results
To print the data distributions for a column with a user-defined data type, use the dbschema -hd option.