Sort (cost=88.68..88.69 rows=1 width=355) Sort Key: a.attnum InitPlan 7 (returns $9) -> Index Scan using pg_class_relname_nsp_index on pg_class (cost=0.27..8.29 rows=1 width=4) Index Cond: (relname = 'pg_class'::name) -> Nested Loop (cost=1.10..80.38 rows=1 width=355) Join Filter: (c.relnamespace = n.oid) -> Nested Loop (cost=1.10..35.29 rows=1 width=155) -> Nested Loop (cost=0.83..34.97 rows=1 width=87) -> Nested Loop Left Join (cost=0.55..16.60 rows=1 width=8) Filter: (d.refobjid IS NULL) -> 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) Filter: (relkind = 'r'::"char") -> Index Scan using pg_depend_depender_index on pg_depend d (cost=0.28..8.30 rows=1 width=8) Index Cond: ((classid = $9) AND (objid = c.oid)) Filter: (deptype = 'e'::"char") -> Index Scan using pg_attribute_relid_attnum_index on pg_attribute a (cost=0.28..18.30 rows=6 width=83) Index Cond: ((attrelid = c.oid) AND (attnum > 0)) -> Index Scan using pg_type_oid_index on pg_type t (cost=0.28..0.32 rows=1 width=72) Index Cond: (oid = a.atttypid) -> 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)))) SubPlan 1 -> Index Scan using pg_collation_oid_index on pg_collation tc (cost=0.28..8.29 rows=1 width=3) Index Cond: (oid = a.attcollation) SubPlan 2 -> Index Scan using pg_type_oid_index on pg_type t1 (cost=0.28..8.29 rows=1 width=64) Index Cond: (oid = t.typbasetype) SubPlan 3 -> Index Scan using pg_type_oid_index on pg_type t2 (cost=0.28..8.30 rows=1 width=32) Index Cond: (oid = a.atttypid) Filter: (typtype = 'd'::"char") SubPlan 4 -> Seq Scan on pg_index (cost=0.00..8.03 rows=1 width=32) Filter: (indisprimary AND (c.oid = indrelid) AND (indkey[0] = a.attnum)) SubPlan 5 -> Seq Scan on pg_attrdef (cost=0.00..2.74 rows=1 width=32) Filter: ((c.oid = adrelid) AND (adnum = a.attnum)) SubPlan 6 -> Index Scan using pg_description_o_c_o_index on pg_description (cost=0.28..8.30 rows=1 width=25) Index Cond: ((objoid = c.oid) AND (objsubid = a.attnum))