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...
81Perhaps 0 instead of oFind the names of database objects where 0 sign is perhaps used instead of o.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:25MIT License
82Inconsistent names 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. For instance, it is a bad practice to use word "state" in table names but word "status" in function names.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:24MIT License
83Perhaps is not snake_case - id, code, key, or nr is not followed by an underscoreFind names that perhaps do not use the snake_case naming style because the name starts with the phrase "id", "uuid", "code" , "kood", "key", or "nr" that is not followed by an underscore. Prefer snake_case over PascalCase and camelCase in names.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:23MIT License
84The same name is used in different contexstsFind the names that are used in case of different types of elementsProblem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:23MIT License
85Prefixes 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 tables2024-12-21 16:22MIT License
86Perhaps too many different prefixes in the names of database objects that have the same typeOne should be consistent in naming, including in the use of prefixes. If you use prefix in the name of a database object, then it should refer to the type of the database object. Do not use different prefixes in the names of database objects that have the same type. Find types of database objects in case of which there are different prefixes in different names.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 16:20MIT License
87Perhaps is not snake_case - Boolean-indicating prefix without underscoreFind names of types, domains, columns, and parameters that perhaps do not use the snake_case naming style because the name starts with "is", "has", or "on" that is not followed by an underscore. Prefer snake_case over PascalCase and camelCase in names.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 15:44MIT License
88Too many slashes in regular expressionsFind patterns of regular expressions where more than \ is written instead of \, e.g., \\s is used instead of \s to refer to a character class.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-21 11:15MIT License
89Perhaps too many input parametersToo many parameters (in this case four or more) could be a sign of not separating concerns and having a routine that has more than one task.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-19 15:07MIT License
90Flag parametersA Boolean parameter may be used to determine what task to fulfill. In this case the routine has multiple tasks and does not satisfy the separation of concerns principle.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-19 11:03MIT License
91Routines with type castingMake sure that your parameters have appropriate types in order to avoid unnecessary type casting.GeneralINFORMATION_SCHEMA+system catalog base tables2024-12-19 11:02MIT License
92User-defined non-trigger SQL and PL/pgSQL routinesFind the non-trigger SQL and PL/pgSQL routines in non-systemic schemas.GeneralINFORMATION_SCHEMA+system catalog base tables2024-12-19 10:54MIT License
93Consistency of comments of routinesFind user-defined routines that have a comment registered by the COMMENT statement and a comment within the routine body. Make sure that there are no inconsistencies between the comments.GeneralINFORMATION_SCHEMA+system catalog base tables2024-12-19 10:53MIT License
94Perhaps searching based on a name instead of a codeFind derived tables with a search condition that is possible based on a name instead of a code.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-18 11:52MIT License
95Columns for registration and update timesFind base table columns that based on the names and data types are meant for registering registration time or update time. Make sure that the columns have the same properties.GeneralINFORMATION_SCHEMA only2024-12-18 11:47MIT License
96Sequence generators not neededFind possible classifier tables that have a column with a sequence generator. Such tables should have natural keys instead of surrogate keys.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-18 10:00MIT License
97Unnecessary use of gist index type in case of an exclude constraintFind exclude constraints that are based on the gist index type although the default b-tree index type would have been enough.Problem detectionsystem catalog base tables only2024-12-16 13:45MIT License
98ROW level BEFORE triggers that do not return a row if a check succeedsFind ROW level BEFORE triggers that check a condition based on other rows, raise an exception but do not return the row if the condition check succeeds, i.e., exception is not raised.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-16 12:41MIT License
99Some data modification functions return a value and some notFind as to whether there are data modification routines that return a value as well as data modification routines that do not return a value.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-12-16 00:02MIT License
100Base table columns with the type VARCHAR(1)The choice of data types should reveal as much as possible about the nature of the data in the column. The type of these columns could be CHAR(1) and they should have a constraint that a value in the column cannot be an empty string.Problem detectionINFORMATION_SCHEMA only2024-12-14 13:41MIT License