Goal Find B-tree indexes that fillfactor has been explicitly set to 90. In case of B-tree indexes the default is 90.
Type Problem detection (Each row in the result could represent a flaw in the design)
Reliability Low (Many false-positive results)
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
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

This query belongs to the following collections:

NameDescription
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

This query is classified under the following categories:

NameDescription
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.