QUERY PLAN
Sort (cost=13.47..13.47 rows=1 width=21)
Sort Key: u.name
-> Group (cost=13.45..13.46 rows=1 width=21)
Group Key: s.id, u.id
-> Sort (cost=13.45..13.45 rows=1 width=21)
Sort Key: s.id, u.id
-> Hash Join (cost=5.54..13.44 rows=1 width=21)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.76 rows=25 width=13)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=5.51..5.51 rows=2 width=8)
-> Seq Scan on tbl_visible_schedules s (cost=0.00..5.51 rows=2 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5295))