QUERY PLAN
Sort (cost=54.58..54.58 rows=2 width=403)
Sort Key: a.attnum
-> Nested Loop (cost=1.68..54.57 rows=2 width=403)
-> Nested Loop Left Join (cost=1.40..46.61 rows=2 width=750)
-> Nested Loop (cost=1.11..45.85 rows=2 width=465)
-> Nested Loop Left Join (cost=0.70..26.01 rows=1 width=155)
-> Nested Loop (cost=0.41..11.91 rows=1 width=132)
-> Seq Scan on pg_namespace d (cost=0.00..1.19 rows=1 width=68)
Filter: (nspname = 'v68a0133f7ab59'::name)
-> Index Scan using pg_class_relname_nsp_index on pg_class c (cost=0.41..8.43 rows=1 width=72)
Index Cond: ((relname = 'tbl_term_taxonomies'::name) AND (relnamespace = d.oid))
-> Index Scan using pg_constraint_conrelid_index on pg_constraint ct (cost=0.29..14.09 rows=1 width=27)
Index Cond: (conrelid = c.oid)
Filter: (contype = 'p'::"char")
-> Index Scan using pg_attribute_relid_attnum_index on pg_attribute a (cost=0.42..19.79 rows=5 width=310)
Index Cond: ((attrelid = c.oid) AND (attnum > 0))
-> Index Scan using pg_attrdef_adrelid_adnum_index on pg_attrdef ad (cost=0.28..0.38 rows=1 width=291)
Index Cond: ((a.attrelid = adrelid) AND (a.attnum = adnum))
-> Index Scan using pg_type_oid_index on pg_type t (cost=0.29..0.35 rows=1 width=344)
Index Cond: (oid = a.atttypid)
Filter: (typname <> ''::name)
SubPlan 1
-> Aggregate (cost=2.53..2.54 rows=1 width=32)
-> Seq Scan on pg_enum (cost=0.00..2.51 rows=7 width=64)
Filter: (enumtypid = a.atttypid)