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...
61Base table column of sums of money does not have a numeric type (based on column names)Find base table columns that name refers to the possibility that these are used to register prices/sums of money. Find columns that do not have a numeric type.Problem detectionINFORMATION_SCHEMA only2021-03-21 11:45MIT License
62Base table column of sums of money has too big or small scaleFind base table columns that name refers to the possibility that these are used to register data about prices/sums of money. Find the columns that have decimal type but have a too big (bigger than six) or a too small scale (zero). The selection of field size must be precise and should take into account the possible data in the column.Problem detectionINFORMATION_SCHEMA only2021-03-21 11:45MIT License
63Base table column of surrogate key values does not have an integer data type (based on column names)Find base table columns that belong to a primary key, unique, or foreign key constraint and that name refers to the possibility that these are used to hold surrogate key values. Find the columns where the data type of the column is not an integer type or uuid.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-13 12:10MIT License
64Base table columns for recording geographic coordinates (based on column names)Find base table columns that are according to the name meant for recording coordinates.GeneralINFORMATION_SCHEMA only2021-10-08 11:59MIT License
65Base table columns for recording geographic coordinates that do not have a suitable type (based on column names)Find base table columns that are according to the name meant for recording geographic coordinate but do not have a suitable type (numeric or point).Problem detectionINFORMATION_SCHEMA only2021-10-08 12:01MIT License
66Base table columns for storing username, password, and saltFind base table columns that name refers to the possibility that these are used to register usernames, passwords, and salt. Password should not be open text. It should be a hash value that has been hashed by using salt.GeneralINFORMATION_SCHEMA only2020-11-06 14:51MIT License
67Base table columns permitting e-mail addresses without @ signFind non-foreign key base table columns that name refers to the possibility that these are used to register e-mail addresses. Find the columns that do not have any simple CHECK constraint that contains @ sign. A simple check constraint covers a single column. In this case registration of e-mail addresses without @ is most probably not prohibited.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
68Base table columns permitting empty strings and strings that consist of only whitespace charactersFind non-foreign key columns of base tables that have a textual type and do not have any simple CHECK constraint, i.e., a constraint that involves only one column. Such columns can contain the empty string and strings that consist of only whitespace.Problem detectionINFORMATION_SCHEMA+system catalog base tables2021-02-25 17:29MIT License
69Base table columns permitting empty strings and strings that consist of only whitespace characters (2)Find non-foreign key columns of base tables that have a textual type and do not have a simple CHECK constraint (i.e., a constraint that involves only one column) that seems to prohibit empty strings and strings that consist of only whitespace as well as a simple CHECK constraint that specifies permitted symbols.Problem detectionINFORMATION_SCHEMA+system catalog base tables2024-01-02 16:52MIT License
70Base table columns permitting negative prices/quantityFind non-foreign key base table columns that name refers to the possibility that these are used to register prices/quantities. Find the columns that do not have any simple CHECK constraints, i.e., a constraint that covers only this column. In this case registration of negative price/quantity is most probably not prohibited.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-10-06 14:14MIT License
71Base table columns permitting telephone numbers without digitsFind non-foreign key base table columns that name refers to the possibility that these are used to register phone numbers. Find the columns that do not have any simple CHECK constraint that references to the character class of digits. A simple check constraint covers a single column. In this case registration of e-mail addresses without digits is most probably not prohibited.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-09 12:52MIT License
72Base table columns permitting temporal values that may be outside the range of logical valuesFind base tables columns with temporal types (date and timestamp) that do not belong to a foreign key and that do not have any associated simple CHECK constraints, i.e., constraint that involves only one column. For instance, in the column registration_time that does not have any associated CHECK constraints could be values '1200-01-01 00:00' or '5900-12-31 00:00'. Rows with these values most probably represent wrong propositions and the system should restrict registration of such data.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-12-17 00:40MIT License
73Base table columns permitting URLs without a protocolFind non-foreign key base table columns that name refers to the possibility that these are used to register URLs. Find the columns that do not have any simple CHECK constraint that references to a protocol. A simple check constraint covers a single column. In this case registration of URLs without a protocol is most probably not prohibited.Problem detectionINFORMATION_SCHEMA+system catalog base tables2023-11-01 13:13MIT License
74Base table columns where TOASTing is possibleFind all base table columns in case of which the system can use TOAST technique.Generalsystem catalog base tables only2020-11-06 14:51MIT License
75Base table columns where TOAST-ing strategy has been changedFind base table columns in case of which the system can use TOAST technique (due to the data type of the column) and where the toasting strategy has been changed so that it is different than the default strategy determined by the type. Make sure that the new strategy is optimal.Generalsystem catalog base tables only2020-11-06 14:51MIT License
76Base table columns where TOAST-ing strategy has been changed to plainFind base table columns in case of which the system can use TOAST technique (due to the data type of the column) and where the toasting strategy has been changed to plain. It means that potentially, if a value in the column is large enough, it is not possible to save the row.Problem detectionsystem catalog base tables only2021-02-25 17:29MIT License
77Base table columns with a composite typeFind base table columns with a composite type. Think through as to whether a column with a composite type could be replaced with a separate table.Generalsystem catalog base tables only2020-11-06 14:51MIT License
78Base table columns with an array typeFind base table columns with an array type. Think through as to whether a column with an array type could be replaced with a separate table.GeneralINFORMATION_SCHEMA+system catalog base tables2020-11-06 14:51MIT License
79Base table columns with CHAR(n) or VARCHAR(n) typeFind base table columns with CHAR(n) or VARCHAR(n) type and make sure that n is not too big or too small. Also make sure that you do not use CHAR(n) in case of columns that have to keep variable length strings. "Values of type character are physically padded with spaces to the specified width n, and are stored and displayed that way" (https://www.postgresql.org/docs/current/datatype-character.html)GeneralINFORMATION_SCHEMA only2020-11-06 14:51MIT License
80Base table columns with CITEXT typeFind base table columns with CITEXT type and make sure that case insensitivity is really needed in case of this column.Generalsystem catalog base tables only2020-11-06 14:51MIT License