| Goal | Find columns of base tables that based on the default value of the column contain database username. However, the type of the column is not VARCHAR(63) or VARCHAR(128). |
|---|---|
| Notes | Default maximum identifier length in PostgreSQL is 63 bytes. Maximum identifier length in SQL standard is 128. The query considers both default values that are associated directly to the column as well as default values that are associated through a domain. |
| Type | Problem detection (Each row in the result could represent a flaw in the design) |
| Reliability | Medium (Medium number of false-positive results) |
| License | MIT (opens in new tab) |
| Data Source | INFORMATION_SCHEMA only |
| SQL Query |
|
Collections
This query belongs to the following collections:
Find problems automatically
Queries, that results point to problems in the database. Each query in the collection produces an initial assessment. However, a human reviewer has the final say as to whether there is a problem or not .
| Name | Description |
|---|---|
| Find problems automatically | Queries, that results point to problems in the database. Each query in the collection produces an initial assessment. However, a human reviewer has the final say as to whether there is a problem or not . |
Categories
This query is classified under the following categories:
Default value
Queries of this catergory provide information about the use of default values.
Field size
Queries of this category provide information about the maximum size of values that can be recorded in column fields
| Name | Description |
|---|---|
| Default value | Queries of this catergory provide information about the use of default values. |
| Field size | Queries of this category provide information about the maximum size of values that can be recorded in column fields |
Further reading and related materials: