QUERY PLAN
Sort (cost=43.52..43.52 rows=1 width=286)
Sort Key: u.name
-> Group (cost=43.50..43.51 rows=1 width=286)
Group Key: s.id, u.id
-> Sort (cost=43.50..43.50 rows=1 width=286)
Sort Key: s.id, u.id
-> Nested Loop (cost=0.00..43.49 rows=1 width=286)
Join Filter: (s.accessible_user = u.id)
-> Seq Scan on tbl_users u (cost=0.00..10.25 rows=1 width=278)
Filter: (user_status = '1'::type_global_user_status)
-> Seq Scan on tbl_visible_approves s (cost=0.00..33.12 rows=9 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5495))