QUERY PLAN
Sort (cost=124496.74..124496.75 rows=1 width=322)
Sort Key: fns.nspname, fc.relname, a.attnum
-> Nested Loop Left Join (cost=27.25..124496.73 rows=1 width=322)
-> Nested Loop Left Join (cost=26.96..124496.42 rows=1 width=289)
-> Nested Loop Left Join (cost=26.82..124496.27 rows=1 width=229)
Join Filter: (fc.oid = ct.confrelid)
-> Nested Loop (cost=26.82..123710.41 rows=1 width=161)
Join Filter: (c.oid = a.attrelid)
-> Nested Loop (cost=26.53..123709.75 rows=2 width=126)
Join Filter: (c.relnamespace = ns.oid)
-> Seq Scan on pg_namespace ns (cost=0.00..1.10 rows=1 width=4)
Filter: (nspname = 'a57be577deb434'::name)
-> Hash Join (cost=26.53..123708.37 rows=23 width=130)
Hash Cond: (ct.conrelid = c.oid)
-> ProjectSet (cost=0.00..35407.79 rows=6992000 width=123)
-> Seq Scan on pg_constraint ct (cost=0.00..395.35 rows=6992 width=118)
Filter: (contype = 'f'::"char")
-> Hash (cost=26.46..26.46 rows=6 width=8)
-> Bitmap Heap Scan on pg_class c (cost=4.33..26.46 rows=6 width=8)
Recheck Cond: (relname = 'tbl_action_logs'::name)
-> Bitmap Index Scan on pg_class_relname_nsp_index (cost=0.00..4.33 rows=6 width=0)
Index Cond: (relname = 'tbl_action_logs'::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..633.16 rows=12216 width=72)
-> Index Scan using pg_namespace_oid_index on pg_namespace fns (cost=0.13..0.15 rows=1 width=68)
Index Cond: (fc.relnamespace = oid)
-> 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))]))