The list of all the queries

B-tree index fillfactor has been explicitly set to 90

Query goal: Find B-tree indexes that fillfactor has been explicitly set to 90. In case of B-tree indexes the default is 90.
Query type: Problem detection (Each row in the result could represent a flaw in the design)
Query reliability: Low (Many false-positive results)
Query license: MIT License
Fixing suggestion: If you create a new B-tree index, then setting FILLFACTOR explicitly to 90 is not needed. Of course it could also be that fillfactor was something different and now it is reset. In this case everything is OK.
Data source: system catalog only
SQL query: Click on query to copy it

WITH indexes_reloptions AS (SELECT 
  pg_class.relname AS index_name, 
  pg_namespace.nspname AS index_schema,
amname AS index_type,
unnest(reloptions) AS reloptions,
pg_get_indexdef(pg_class.oid) AS index_definition
FROM 
  pg_catalog.pg_class, 
  pg_catalog.pg_namespace,
pg_am
WHERE 
  pg_class.relnamespace = pg_namespace.oid 
AND pg_class.relam=pg_am.oid
AND relkind='i')
SELECT index_name, index_schema, index_type, reloptions, index_definition
FROM indexes_reloptions
WHERE index_type='btree' AND reloptions LIKE '%fillfactor=90%'
ORDER BY index_name;

Collections where the query belongs to

Collection nameCollection description
Find problems automaticallyQueries, 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 .
Find problems by overviewQueries that results point to different aspects of database that might have problems. A human reviewer has to decide based on the results as to whether there are problems or not .

Categories where the query belongs to

Category nameCategory description
Data at the database physical levelQueries of this category provide information about the disk usage.
PerformanceQueries of this category provide information about indexes in a database.

The list of all the queries