QUERY PLAN
Sort (cost=9.87..9.87 rows=1 width=21)
Sort Key: u.name
-> Group (cost=9.85..9.86 rows=1 width=21)
Group Key: s.id, u.id
-> Sort (cost=9.85..9.85 rows=1 width=21)
Sort Key: s.id, u.id
-> Hash Join (cost=1.94..9.84 rows=1 width=21)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.80 rows=24 width=13)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=1.93..1.93 rows=1 width=8)
-> Seq Scan on tbl_visible_approves s (cost=0.00..1.93 rows=1 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 1015))