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...
501Names of database objects that start with an underscoreImprove the readability of names. Find the names (identifiers) of user-defined database objects that start with an underscore. This is not necessarily a mistake. For instance, parameter names could start with an underscore. On the other hand, it could be that the prefix is missing in the name.GeneralINFORMATION_SCHEMA+system catalog base tables2023-03-18 16:49MIT License
502Names of database objects with four or more consecutive identical symbolsFind names of database objects with four or more consecutive identical symbolsProblem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-11 19:48MIT License
503Names of database objects with perhaps too many digitsFind the names of database objects where more than half the signs are digits.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-03-18 16:36MIT License
504Names of database objects with perhaps too many subcomponents (terms)"Names in software are 90 percent of what make software readable. You need to take the time to choose them wisely and keep them relevant. Names are too important to treat carelessly. Names should not cause confusion." (Robert C. Martin, Clean Code) The number of subcomponents (terms) should not be too big. Find the names (identifiers) of user-defined database objects that perhaps contain too many subcomponents, assuming, that the separator of the components is "_".Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-03-17 10:02MIT License
505Names of database objects with perhaps too many subcomponents (terms) that consist of only consonantsFind names of database objects where the number of subcomponents (terms) that consist of only consonants is bigger than the number of subcomponents that contain at least one vowel.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-03-18 16:13MIT License
506Names of indexes that do not contain the table nameFind indexes that do not support a declarative constraint and that are perhaps badly named. Table names make the names more expressive and user-friendly.Problem detectionsystem catalog base tables only2023-01-10 18:13MIT License
507Names of the columns of derived tables that have been given by the systemFind columns of derived tables that name has been given by the system. The creators of the table should specify the name themselves to avoid ugly names and nasty surprises.Problem detectionINFORMATION_SCHEMA+system catalog base tables2022-11-15 16:48MIT License
508Names of the password columnsFind names of columns of base tables, views, and materialized views that contain passwords. Make sure that the naming is consistent,GeneralINFORMATION_SCHEMA+system catalog base tables2022-11-30 15:04MIT License
509Names of triggers and rules that do contain the table nameThe names should contain table name in order to make the names better understandable.GeneralINFORMATION_SCHEMA+system catalog base tables2023-01-13 19:23MIT License
510Names of triggers and rules that do not contain the table nameThe names should contain table name in order to make the names better understandable.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-01-13 19:18MIT License
511Name starts or ends with spacesFind the names of user-defined database objects (must be delimited identifiers) that start or end with spaces.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-03-17 10:03MIT License
512Naming of declarative base table constraintsFind the names of declarative base table constraints. Naming of constraints must be consistent. For instance, do not mix system-defined and user-defined names.GeneralINFORMATION_SCHEMA+system catalog base tables2021-11-17 20:11MIT License
513Naming of tablesFind the names of different types (base table, foreign table, view, materialized view) of tables. Naming of tables must be consistent. For instance, do not mix names in plural and singular form within the same table type.GeneralINFORMATION_SCHEMA+system catalog base tables2021-11-17 20:13MIT License
514No 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
515Non-foreign key base table columns with the same name have a different set of CHECK constraintsFind non-foreign key base table columns that have the same name but a different set of check constraints. The use of constraints should be consistent and all the necessary constraints must be enforced. "If you do something a certain way, do all similar things in the same way." (Robert C. Martin, Clean Code)Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-10-31 20:39MIT License
516Non-foreign key columns that have no associated CHECK constraintsFind what are the base table columns that are not foreign key columns and that have no associated CHECK constraints? Perhaps some CHECK constraints are missing.Problem detectionINFORMATION_SCHEMA only2021-02-25 17:29MIT License
517Non-key and non-foreign key base table columns with the same name and type that have in some cases permit NULLs and in some cases notFind non-key and non-foreign key base table columns with the same name and type that in some cases permit NULLs and in some cases not. Be consistent. Make sure that this selection is consistent.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
518Non-predefined character classes must not be between double square bracketsWrite correct regular expressions. For instance, if there is a rule that code must consist of one or more digits, then correct expression is code~'^[0-9]+$', not code~'^[[0-9]]+$'.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-13 12:32MIT License
519Non-updatable views that have data modification privilegesBe precise and do not give impossible privileges.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
520Non-updatable views with DO INSTEAD NOTHING rulesFind non-updatable views that have a DO INSTEAD NOTHING rule. The rule is used to prevent updates. However, the view is aniway non-updatable.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-10-28 13:01MIT License