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 996 queries.

Seq nrNameGoalTypeData sourceLast updateLicense...
501Names of database objects (regular identifiers) that contain $Find names (identifiers) of user-defined database objects that are regular identifiers and contain the $ sign starting from the second position. "Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable." (PostgreSQL manual)Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:46MIT License
502Names of database objects that are fully uppercaseFull uppercase means screaming and it makes comprehending the names more difficult. Find the names (identifiers) of user-defined database objects that are fully uppercase. Because PostgreSQL stores regular identifiers lowercase in the system catalog it also means that these are delimited identifiers, i.e., these are case sensitive.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 17:27MIT License
503Names of database objects that are used to manage the state of main objects in the database"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 naming must be consistent. One should avoid mixing synonyms like "seisund", "staatus", and "olek" in Estonian or "state" and "status" in English and stick with one term.GeneralINFORMATION_SCHEMA+system catalog base tables2024-12-21 17:23MIT License
504Names of database objects that contain a digitFind the names (identifiers) of user-defined database objects that contain at least one digit. Names should be informative. Duplicates should be avoided. Digits in names are a possible sign of duplication of database objects or unclear names.GeneralINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:45MIT License
505Names of database objects that contain dollar signFind names of database objects that contain a dollar sign ($) that is not the first symbol of the name. In PostgreSQL regular identifiers cannot start with $. However, $ can be used in other positions of the name. "Note that dollar signs are not allowed in identifiers according to the letter of the SQL standard, so their use might render applications less portable." (PostgreSQL documentation)Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:43MIT License
506Names of database objects that contain two or more consecutive underscores or spaces as separators of name componentsImprove the readability of names. Find the names (identifiers) of user-defined database objects that contain two or more consecutive underscores or spaces that separate name components, i.e., these are not at the beginning and in the end of the name. Example of such names are person__id or "person id". Names with duplicate underscores use snake case style but duplication of underscores does not improve the usability of the name.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 17:22MIT License
507Names of database objects that end with an underscoreFind names of database objects that end with a underscore.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:42MIT License
508Names of database objects that mix snake_case and camelCase/PascalCaseUse consistent style of naming. Prefer snake_case. Regular identifiers are stored in the PostgreSQL system catalog in lowercase. Thus, if you use, for instance the identifier thisIsLongTableName, then, for instance,in the pg_dump result you will see the table name thisislongtablename. If the name in the system catalog is thisIsLongTableName, then it means that the name is a delimited identifier, i.e., case sensitive.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:35MIT License
509Names of database objects that perhaps end with a sequence numberFind the names (identifiers) of user-defined database objects that end with one or more digit. Names should be informative. Duplicates should be avoided. Digits in names are a possible sign of duplication of database objects or unclear names.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:33MIT License
510Names of database objects that perhaps end with a sequence number (aggregate view)Find the number of names (identifiers) of user-defined database objects that end with one or more digit. Names should be informative. Duplicates should be avoided. Digits in names are a possible sign of duplication of database objects or unclear names.Sofware measureINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:33MIT License
511Names 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 tables2024-12-21 17:23MIT License
512Names 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 tables2024-12-21 17:27MIT License
513Names 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 tables2024-12-21 17:20MIT License
514Names 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 tables2024-12-21 16:44MIT License
515Names 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 tables2024-12-21 17:18MIT License
516Names 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
517Names 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
518Names 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
519Names 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
520Names 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