Filter Queries
Found 1053 queries.
- All the queries about database objects contain a subcondition to exclude from the result information about the system catalog.
- Although the statements use SQL constructs (common table expressions; NOT in subqueries) that could cause performance problems in case of large datasets it shouldn't be a problem in case of relatively small amount of data, which is in the system catalog of a database.
- Statistics about the catalog content and project home in GitHub that has additional information.
#1. A getter does not return a value
INFORMATION_SCHEMA+system catalog base tablesFind user-defined SQL and PL/pgSQL routines that do not return a value although the name suggest that it should return a value (starts with "get").
#2. A large number of triggers
INFORMATION_SCHEMA+system catalog base tablesShow user-defined triggers if there are more than 9 different trigger routine bodies, i.e., different triggers on different tables that do the same thing count as one trigger.
#3. All CHECK constraints of domains that are not associated with any table
INFORMATION_SCHEMA onlyFind all CHECK constraints (except NOT NULL) of domains that are not associated with any column.
#4. All clustered indexes
system catalog base tables onlyFind all tables that rows have been physically sorted based on an index.
#5. All column DEFAULT values
INFORMATION_SCHEMA onlyFind all the default values of base table, view, and foreign table columns.
#6. All column dynamic DEFAULT values values that do not invoke a sequence
INFORMATION_SCHEMA onlyFind all columns that have a dynamic default value, i.e., the value is returned by a function but the function is not for invoking a sequence.
#7. All columns of a base table have a default value
INFORMATION_SCHEMA onlyFind base tables where all the columns have a default value.
#8. All column static DEFAULT values
INFORMATION_SCHEMA onlyFind all columns that have a static default value, i.e., the value is not returned by a function.
#9. All covering indexes
INFORMATION_SCHEMA+system catalog base tablesFind all covering indexes, which include data from additional columns in leaf blocks.
#10. All database privileges
system catalog base tables onlyFind the privileges to use the database. c - CONNECT; C - CREATE; T - TEMPORARY.
#11. All declaratively partitioned tables
INFORMATION_SCHEMA+system catalog base tablesFind partitioned tables that have been implemented by using the declarative approach. Declarative partitioning is implemented in PostgreSQL starting from PostgreSQL 10.
#12. All domain default values
INFORMATION_SCHEMA onlyFind domains that specify a default values and columns that are defined based on the domain. Make sure that there are no unsuitable default values.
#14. All enumerated types
INFORMATION_SCHEMA+system catalog base tablesFind all enumerated types.
#15. All event triggers
system catalog base tables onlyFind event triggers, which are not associated to a specific schema object.
#16. All exclude constraints
system catalog base tables onlyFind all exclude constraints.
#17. All foreign key constraints
system catalog base tables onlyEnforce referential integrity in database. Find all referential integrity (foreign key) constraints.
#18. All foreign tables
INFORMATION_SCHEMA onlyFind all foreign tables.
#19. All gin indexes
INFORMATION_SCHEMA+system catalog base tablesFind indexes with less common access methods. Gin indexes are, for instance, used to speed up PostgreSQL's built in full text search.
#20. All identifying relationships
system catalog base tables onlyFind all non-identifying relationships where the foreign key (a set of columns) is a subset of a uniqueness constraint (primary key, unique, or exclude constraint).
| # | Name | Goal | Type | Data source | Last update (sorted ascending) | License | Actions |
|---|---|---|---|---|---|---|---|
| 1 | A getter does not return a value | Find user-defined SQL and PL/pgSQL routines that do not return a value although the name suggest that it should return a value (starts with "get"). | Problem detection | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 2 | A large number of triggers | Show user-defined triggers if there are more than 9 different trigger routine bodies, i.e., different triggers on different tables that do the same thing count as one trigger. | General | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 3 | All CHECK constraints of domains that are not associated with any table | Find all CHECK constraints (except NOT NULL) of domains that are not associated with any column. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 4 | All clustered indexes | Find all tables that rows have been physically sorted based on an index. | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) | |
| 5 | All column DEFAULT values | Find all the default values of base table, view, and foreign table columns. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 6 | All column dynamic DEFAULT values values that do not invoke a sequence | Find all columns that have a dynamic default value, i.e., the value is returned by a function but the function is not for invoking a sequence. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 7 | All columns of a base table have a default value | Find base tables where all the columns have a default value. | Problem detection | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 8 | All column static DEFAULT values | Find all columns that have a static default value, i.e., the value is not returned by a function. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 9 | All covering indexes | Find all covering indexes, which include data from additional columns in leaf blocks. | General | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 10 | All database privileges | Find the privileges to use the database. c - CONNECT; C - CREATE; T - TEMPORARY. | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) | |
| 11 | All declaratively partitioned tables | Find partitioned tables that have been implemented by using the declarative approach. Declarative partitioning is implemented in PostgreSQL starting from PostgreSQL 10. | General | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 12 | All domain default values | Find domains that specify a default values and columns that are defined based on the domain. Make sure that there are no unsuitable default values. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 13 | All domains | Find all domains. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 14 | All enumerated types | Find all enumerated types. | General | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 15 | All event triggers | Find event triggers, which are not associated to a specific schema object. | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) | |
| 16 | All exclude constraints | Find all exclude constraints. | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) | |
| 17 | All foreign key constraints | Enforce referential integrity in database. Find all referential integrity (foreign key) constraints. | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) | |
| 18 | All foreign tables | Find all foreign tables. | General | INFORMATION_SCHEMA only | MIT (opens in new tab) | View (opens in new tab) | |
| 19 | All gin indexes | Find indexes with less common access methods. Gin indexes are, for instance, used to speed up PostgreSQL's built in full text search. | General | INFORMATION_SCHEMA+system catalog base tables | MIT (opens in new tab) | View (opens in new tab) | |
| 20 | All identifying relationships | Find all non-identifying relationships where the foreign key (a set of columns) is a subset of a uniqueness constraint (primary key, unique, or exclude constraint). | General | system catalog base tables only | MIT (opens in new tab) | View (opens in new tab) |