QUERY PLAN
Sort (cost=43.95..43.97 rows=9 width=286)
Sort Key: u.name
-> Group (cost=43.74..43.81 rows=9 width=286)
Group Key: s.id, u.id
-> Sort (cost=43.74..43.76 rows=9 width=286)
Sort Key: s.id, u.id
-> Hash Left Join (cost=10.45..43.60 rows=9 width=286)
Hash Cond: (s.accessible_user = u.id)
-> Seq Scan on tbl_visible_reimbursements s (cost=0.00..33.12 rows=9 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5495))
-> Hash (cost=10.20..10.20 rows=20 width=278)
-> Seq Scan on tbl_users u (cost=0.00..10.20 rows=20 width=278)