| 1041 |
The proportion of mandatory and optional textual base table columns |
Find the number of textual base table columns, the number of optional textual base table columns (permit NULLs), and the number of mandatory textual base table columns (do not permit NULLs). |
Sofware measure |
INFORMATION_SCHEMA only |
2025-11-07 10:11 |
MIT License |
View |
| 1042 |
The proportion of using different integer types as types of base table columns |
Find the number of base table columns that use different integer types (SMALLINT, INTEGER, BIGINT) and their proportion from the overall set of columns that use an integer type. |
Sofware measure |
INFORMATION_SCHEMA only |
2025-11-07 10:11 |
MIT License |
View |
| 1043 |
The storage size of each index (the system catalog excluded) |
Get overview of disk usage. |
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1044 |
The storage size of each schema data object (the system catalog excluded) |
Get overview of disk usage by different schema objects that contain user data. |
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1045 |
The storage size of each table (including indexes) (the system catalog excluded) |
Get overview of disk usage. |
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1046 |
The total number of physical lines of code in the bodies of user-defined SQL and PL/pgSQL functions/procedures |
Find a numerical measure that describes the extent of the database public interface (virtual data layer) through which users access the database. |
Sofware measure |
INFORMATION_SCHEMA+system catalog base tables |
2025-11-07 10:11 |
MIT License |
View |
| 1047 |
The total size of all indexes (system catalog excluded) |
|
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1048 |
The total size of all tables (system catalog excluded) |
|
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1049 |
The total storage size of all indexes (the system catalog excluded) |
Get overview of disk usage. |
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1050 |
The total storage size of the database (the system catalog included) |
Get overview of disk usage. |
Sofware measure |
system catalog base tables only |
2025-11-07 10:11 |
MIT License |
View |
| 1051 |
The usage of double vs singular underscores or spaces in names as separator of name components |
Improve the readability of names. Find the number of names (identifiers) of user-defined database objects that contain two or more consecutive underscores or spaces as the separator of name components vs. the number of names that contain a single underscore or space to separate name components. Try to be consistent in the usage of underscores. |
Sofware measure |
INFORMATION_SCHEMA+system catalog base tables |
2025-11-07 10:11 |
MIT License |
View |
| 1052 |
The use of xmin hidden column in views and routines |
Find the number of views and materialized views that have a column with the xid type and the number of routines that contain a UPDATE or a DELETE statement that search condition refers to the xmin column. If one uses optimistic approach for dealing with the concurrent modifications of data, then xmin values should be presented by views and used in routines that modify or delete rows. |
Sofware measure |
INFORMATION_SCHEMA+system catalog base tables |
2025-11-07 10:11 |
MIT License |
View |
| 1053 |
Too generic names (columns) (aggregate view)(2) |
This query calculates the total cardinality of semantically weak column identifiers across the entire schema, encompassing both base tables and views. It applies a uniform definition of "generic" (e.g., flagging identifiers like id, type, date) regardless of the underlying object type. By treating table and view columns equivalently, the query provides a holistic metric of naming ambiguity, quantifying the overall prevalence of non-descriptive attributes within the database's public interface. |
Sofware measure |
INFORMATION_SCHEMA+system catalog base tables |
2026-01-21 09:17 |
MIT License |
View |