QUERY PLAN
Sort (cost=48.59..48.60 rows=1 width=403)
Sort Key: a.attnum
-> Nested Loop Left Join (cost=5.42..48.58 rows=1 width=403)
-> Nested Loop (cost=5.14..29.45 rows=1 width=1069)
-> Nested Loop Left Join (cost=4.86..29.13 rows=1 width=729)
-> Nested Loop (cost=4.58..28.81 rows=1 width=442)
-> Nested Loop (cost=4.30..12.44 rows=1 width=132)
Join Filter: (c.relnamespace = d.oid)
-> Seq Scan on pg_namespace d (cost=0.00..1.10 rows=1 width=68)
Filter: (nspname = 'a57be577deb434'::name)
-> Bitmap Heap Scan on pg_class c (cost=4.30..11.31 rows=2 width=72)
Recheck Cond: (relname = 'tbl_users'::name)
-> Bitmap Index Scan on pg_class_relname_nsp_index (cost=0.00..4.29 rows=2 width=0)
Index Cond: (relname = 'tbl_users'::name)
-> Index Scan using pg_attribute_relid_attnum_index on pg_attribute a (cost=0.29..16.32 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.32 rows=1 width=293)
Index Cond: ((a.attrelid = adrelid) AND (a.attnum = adnum))
-> Index Scan using pg_type_oid_index on pg_type t (cost=0.28..0.32 rows=1 width=344)
Index Cond: (oid = a.atttypid)
Filter: (typname <> ''::name)
-> Index Scan using pg_constraint_conrelid_index on pg_constraint ct (cost=0.28..16.49 rows=1 width=27)
Index Cond: (conrelid = c.oid)
Filter: (contype = 'p'::"char")
SubPlan 1
-> Aggregate (cost=1.53..1.54 rows=1 width=32)
-> Seq Scan on pg_enum (cost=0.00..1.51 rows=7 width=64)
Filter: (enumtypid = a.atttypid)