QUERY PLAN
Sort (cost=183392.00..183392.00 rows=1 width=322)
Sort Key: fns.nspname, fc.relname, a.attnum
-> Nested Loop Left Join (cost=12.72..183391.99 rows=1 width=322)
-> Nested Loop Left Join (cost=12.42..183391.67 rows=1 width=289)
Join Filter: (fc.relnamespace = fns.oid)
-> Nested Loop Left Join (cost=12.42..183390.54 rows=1 width=229)
Join Filter: (fc.oid = ct.confrelid)
-> Nested Loop (cost=12.42..182403.25 rows=1 width=161)
Join Filter: (c.oid = a.attrelid)
-> Nested Loop (cost=12.13..182402.92 rows=1 width=126)
Join Filter: (c.relnamespace = ns.oid)
-> Seq Scan on pg_namespace ns (cost=0.00..1.07 rows=1 width=4)
Filter: (nspname = 'a57be577deb434'::name)
-> Hash Join (cost=12.13..182401.75 rows=8 width=130)
Hash Cond: (ct.conrelid = c.oid)
-> ProjectSet (cost=0.00..52213.19 rows=10311000 width=123)
-> Seq Scan on pg_constraint ct (cost=0.00..580.86 rows=10311 width=118)
Filter: (contype = 'f'::"char")
-> Hash (cost=12.11..12.11 rows=2 width=8)
-> Bitmap Heap Scan on pg_class c (cost=4.43..12.11 rows=2 width=8)
Recheck Cond: (relname = 'tbl_task_groups'::name)
-> Bitmap Index Scan on pg_class_relname_nsp_index (cost=0.00..4.43 rows=2 width=0)
Index Cond: (relname = 'tbl_task_groups'::name)
-> Index Scan using pg_attribute_relid_attnum_index on pg_attribute a (cost=0.29..0.31 rows=1 width=70)
Index Cond: ((attrelid = ct.conrelid) AND (attnum = (ct.conkey)[(generate_subscripts(ct.conkey, 1))]))
-> Seq Scan on pg_class fc (cost=0.00..772.13 rows=17213 width=72)
-> Seq Scan on pg_namespace fns (cost=0.00..1.06 rows=6 width=68)
-> Index Scan using pg_attribute_relid_attnum_index on pg_attribute fa (cost=0.29..0.31 rows=1 width=70)
Index Cond: ((attrelid = ct.confrelid) AND (attnum = (ct.confkey)[(generate_subscripts(ct.conkey, 1))]))