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...
381Perhaps excessive privileges to use base tablesFind excessive privileges to use base tabes (for others than the owner of the base table). The excessive privileges are all that are not SELECT, INSERT, UPDATE, DELETE.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
382Exclude constraint to prevent overlapping time periodsFind exclude constraints on base tables with multiple date/timestamp columns that prevent overlapping time periods.GeneralINFORMATION_SCHEMA+system catalog base tables2023-11-07 00:44MIT License
383Exclude constraint instead of simple UNIQUEFind exclude constraints that implement a simple UNIQUE constraint. The checking might be slower compared to UNIQUE constraint.Problem detectionsystem catalog base tables only2021-02-25 17:30MIT License
384Length and char_lenfgth functions are used within the same expressionFind expressions that refer to both length and char_length functions. Make sure that the expression is correct.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-09 13:44MIT License
385The usage of data type formatting functionsFind expressions that use a data type formatting function - to_char, to_number, to_date, to_timestamp.GeneralINFORMATION_SCHEMA+system catalog base tables2020-11-06 14:51MIT License
386Regular expression with possibly a LIKE patternFind expressions that use a regular expression with a like predicate pattern.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-10-21 11:11MIT License
387LIKE with a regular expression patternFind expressions that use LIKE (including ILIKE) predicate with a regular expression patterns. In a LIKE pattern one can use only _ and % metasymbols to construct a pattern.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-10-21 10:38MIT License
388LIKE instead of =Find expressions that use LIKE predicate for precise comparison.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-09 10:43MIT License
389LIKE without a pattern with % or _Find expressions that use LIKE predicate witout a pattern that contains at least one % or _ sign.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:30MIT License
390No need to use to_date or to_timestamp functionFind expressions where a date literal with the ISO format is converted to date/timestamp by using to_date or to_timestamp function.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
391Extension routines in the schema "public"Find extensions that routines are in the schema public.Generalsystem catalog base tables only2024-01-04 11:56MIT License
392Prefixes in the names of database objectsFind for different types of database objects all the prefixes that are used in different names. One should be consistent in naming, including in the use of prefixes. If you use prefix in the name of a database object, then it could refer to the type of the database object. Do not use different prefixes in the names of database objects that have the same type.GeneralINFORMATION_SCHEMA+system catalog base tables2023-12-22 12:39MIT License
393Vacuum and analyze status of base tablesFind for each base table the last time when the table has been vacuumed or analyzed (either manually or automatically).Generalsystem catalog base tables only2023-10-06 13:48MIT License
394Coverage by derived tablesFind for each base table the list of derived tables (both views and materialized views) that refer to the base table. If the database is used through the public database interface (virtual data layer), then, ideally, each table is referred from the subquery of at least one derived table.GeneralINFORMATION_SCHEMA+system catalog base tables2023-11-11 09:31MIT License
395Coverage by routines that have the SQL-standard bodyFind for each base table the list of routines (functions and procedures) that refer to the base table. If the database is used through the public database interface (virtual data layer), then, ideally, each table is referred from at least one routine.GeneralINFORMATION_SCHEMA+system catalog base tables2021-11-05 17:00MIT License
396Usage of base tablesFind for each derived table the list of base tables that are used by the derived table.GeneralINFORMATION_SCHEMA+system catalog base tables2024-01-14 00:50MIT License
397Domain usage in base tablesFind for each domain the number of usages in base tables. The less you have managed to reuse domains in case of different columns, the more you have wasted your time by creating the domains.GeneralINFORMATION_SCHEMA only2020-11-06 14:51MIT License
398The number of SQL-language routines with different types of bodiesFind for each user schema that contain a SQL-language routine how many of these have the body that is string literal and how many have the body (possible starting from PostgreSQL 14) that is parsed at the routine definition time. Try to be consistent, i.e., use the same solution in case of all the routines.Sofware measureINFORMATION_SCHEMA+system catalog base tables2022-12-02 11:33MIT License
399Number of underlying tables of derived tablesFind for each view or materialized view the number of tables based on which the derived table has been directly defined. These tables could be base tables or derived tables.Sofware measureINFORMATION_SCHEMA+system catalog base tables2023-11-11 09:30MIT License
400Unused foreign data wrappersFind foreign data wrappers that do not have any associated foreign servers.Problem detectionINFORMATION_SCHEMA only2021-02-25 17:30MIT License