Goal | Find inheritance between base tables. Use table inheritance carefully because, for instance, certain constraints are not inherited and must be redefined on child tables. |
Notes | The query outputs information as to whether the child is partition or not because internally PostgreSQL uses the inheritance mechanism in case of declarative partitioning. |
Type | General (Overview of some aspect of the database.) |
License | MIT License |
Data Source | system catalog only |
SQL Query |
|
This query belongs to the following collections:
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 . |
This query is classified under the following categories:
Name | Description |
---|---|
Comfortability of database evolution | Queries of this category provide information about the means that influence database evolution. |
Table inheritance | Queries of this category provide information about the inheritance between base tables. |
Further reading and related materials: