Nested Loop (cost=17.80..18.71 rows=1 width=97) -> Nested Loop (cost=17.67..18.52 rows=1 width=133) -> Nested Loop (cost=17.40..17.87 rows=1 width=129) -> Nested Loop (cost=17.26..17.64 rows=1 width=72) -> HashAggregate (cost=16.98..16.99 rows=1 width=4) Group Key: i_1.indexrelid -> Nested Loop (cost=8.30..16.98 rows=1 width=4) Join Filter: (c.relnamespace = n.oid) -> Hash Join (cost=8.30..15.85 rows=1 width=8) Hash Cond: (i_1.indrelid = c.oid) -> Seq Scan on pg_index i_1 (cost=0.00..7.02 rows=202 width=8) -> Hash (cost=8.29..8.29 rows=1 width=8) -> Index Scan using pg_class_relname_nsp_index on pg_class c (cost=0.27..8.29 rows=1 width=8) Index Cond: (relname = 'doctrine_migration_versions'::name) -> Seq Scan on pg_namespace n (cost=0.00..1.11 rows=1 width=4) Filter: ((nspname <> ALL ('{pg_catalog,information_schema,pg_toast}'::name[])) AND (nspname = ANY (current_schemas(false)))) -> Index Scan using pg_class_oid_index on pg_class ic (cost=0.27..0.65 rows=1 width=68) Index Cond: (oid = i_1.indexrelid) -> Index Scan using pg_index_indexrelid_index on pg_index i (cost=0.14..0.23 rows=1 width=69) Index Cond: (indexrelid = ic.oid) -> Index Scan using pg_class_oid_index on pg_class tc (cost=0.27..0.65 rows=1 width=8) Index Cond: (oid = i.indrelid) -> Index Only Scan using pg_namespace_oid_index on pg_namespace tn (cost=0.13..0.17 rows=1 width=4) Index Cond: (oid = tc.relnamespace)