| Goal | Find columns with BYTEA or OID type. These columns are potentially meant for storing large objects. Each columns should have the most appropriate data type. |
|---|---|
| Notes | The query finds information about base tables (including foreign tables), views, and materialized views. One has to find information about materialized views directly from the system catalog base tables because materialized views are not standardized in the SQL standard (as of SQL:2016) and the information is not presented through the INFORMATION_SCHEMA views. Query returns also information about columns that properties have been specified through a domain. |
| Type | General Overview of some aspect of the database. |
| License | MIT (opens in new tab) |
| Data Source | INFORMATION_SCHEMA+system catalog |
| SQL Query |
|
Collections
This query belongs to the following collections:
Find problems about base tables
A selection of queries that return information about the data types, field sizes, default values as well as general structure of base tables. Contains all the types of queries - problem detection, software measure, and general overview
Find problems by overview
Queries that results point to different aspects of database that might have problems. A human reviewer has to decide based on the results as to whether there are problems or not .
| Name | Description |
|---|---|
| Find problems about base tables | A selection of queries that return information about the data types, field sizes, default values as well as general structure of base tables. Contains all the types of queries - problem detection, software measure, and general overview |
| Find problems by overview | Queries that results point to different aspects of database that might have problems. A human reviewer has to decide based on the results as to whether there are problems or not . |
Categories
This query is classified under the following categories:
Data types
Queries of this category provide information about the data types and their usage.
| Name | Description |
|---|---|
| Data types | Queries of this category provide information about the data types and their usage. |
Further reading and related materials: