Catalog of PostgreSQL queries for finding information about a PostgreSQL database and its design problems

AND
AND
AND
ANDFrom where does the query gets its information?
AND
AND

There are 961 queries.

Seq nrNameGoalTypeData sourceLast updateLicense...
921Table inheritanceFind inheritance between base tables. Use table inheritance carefully because, for instance, certain constraints are not inherited and must be redefined on child tables.Generalsystem catalog base tables only2020-11-15 13:02MIT License
922Table inheritance (path view)Find in case of each base table that participates in a table inheritance hierarchy the path to the table from the top-level table. Use table inheritance carefully because, for instance, certain constraints are not inherited and must be redefined on child tables. Also make sure that the identifier of each child table in an inheritance hierarchy is a hyponym of the identifier of its parent table.Generalsystem catalog base tables only2022-11-13 16:13MIT License
923Tables that have associated user triggersFind information about tables that are associated with triggers.Generalsystem catalog base tables only2020-11-06 14:51MIT License
924The longest referential pathsFind the longest referential paths between the tables regardless of the schema that contain the tables.Sofware measuresystem catalog base tables only2020-11-14 15:42MIT License
925The name of the base table that implements a binary relationship type does not explain the meaning of the relationshipFind base tables that implement a binary relationship type (have two foreign keys) and the name of the table consist of the names of tables that this (intermediate) table connect. The names should be derived from the domain. For instance, instead of name Course_Lecturer it is better to have name Teaching.Problem detectionsystem catalog base tables only2023-03-18 17:58MIT License
926The number of compensating actions of foreign key constraintsFind the number of compensating actions that are specified in case of foreign key constraints.Sofware measuresystem catalog base tables only2020-11-16 10:11MIT License
927The number of direct and indirect child tables (foreign keys)Find the number of direct and all (direct+indirect) child tables of a base table based on the foreign keys. The result may help to classify the data. If the number of direct children is small but the number of all children is large, then the table probably contains classifiers. If both the number of direct and all children is large, then the table probably contains master data. If the number of all children is small, then the table probably contains transactional data, logs, or descriptive information of main entities.Sofware measuresystem catalog base tables only2020-11-14 16:10MIT License
928The number of direct and indirect child tables (table inheritance)Find the number of direct and all (direct+indirect) child tables of a base table based on the table inheritance.Sofware measuresystem catalog base tables only2020-11-14 19:59MIT License
929The number of referencing base tablesFind how many base tables reference to a base table by using foreign keys. The more references there are the more impact the change of the table could have to the overall system.Sofware measuresystem catalog base tables only2021-03-12 11:02MIT License
930The number of rules by different characteristicsFind the number of rules by event (SELECT, INSERT, UPDATE, and DELETE) and in total.Sofware measuresystem catalog base tables only2024-01-14 16:10MIT License
931The number of schema objects by schema, by type, and in totalFind the number of different types of schema objects in different schemas as well as the total number of schema objects. Show the number of objects that belong to an extension as well as the number of (user-defined) objects that do not belong to an extension.Sofware measuresystem catalog base tables only2020-11-06 14:51MIT License
932The number of table constraints with the cardinality bigger than oneFind the number of table constraints with the cardinality bigger than one. Find the number, based on the cardinality, constraint type, and cardinality+constraint type.Sofware measuresystem catalog base tables only2020-11-19 13:29MIT License
933The number of user-defined rulesFind the number of rules in a database, excluding the rules that are associated with system catalog tables and rules that are created to support views. Rules can be used to maintain data integrity in a database by causing rejection of incorrect insertions and updates. Therefore, the number of rules in a database gives some indications about the state of enforcing constraints at the database level.Sofware measuresystem catalog base tables only2022-10-21 11:19MIT License
934The number of user-defined rules by schema and in totalFind the number of rules in a database in different schemas, excluding the rules that are created to support views. Rules can be used to maintain data integrity in a database by causing rejection of incorrect insertions and updates. Therefore, the number of rules in a database gives an indication about the state of enforcing constraints at the database level.Sofware measuresystem catalog base tables only2022-10-21 11:29MIT License
935The same CHECK has a different name in different placesFind the names of table CHECK constraints that have the same Boolean expression but a different naming style in different places (tables). The naming of constraints should be consistent. "If you do something a certain way, do all similar things in the same way." (Robert C. Martin, Clean Code)Problem detectionsystem catalog base tables only2023-01-14 20:47MIT License
936The size of base tables and their indexesFind the size of base tables without indexes, size of the indexes of the table, total size of the table (including its indexes) and percentage of the index size from the total size. If the size of indexes of a table is relatively high, then check as to whether all the indexes are needed.Generalsystem catalog base tables only2023-10-27 20:38MIT License
937The storage size of each index (the system catalog excluded)Get overview of disk usage.Sofware measuresystem catalog base tables only2020-11-06 14:51MIT License
938The 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 measuresystem catalog base tables only2020-11-06 14:51MIT License
939The storage size of each table (including indexes) (the system catalog excluded)Get overview of disk usage.Sofware measuresystem catalog base tables only2020-11-06 14:51MIT License
940The total size of all indexes (system catalog excluded)Sofware measuresystem catalog base tables only2023-05-14 11:04MIT License