QUERY PLAN
Sort (cost=11.41..11.42 rows=5 width=21)
Sort Key: u.name
-> Group (cost=11.32..11.35 rows=5 width=21)
Group Key: s.id, u.id
-> Sort (cost=11.32..11.33 rows=5 width=21)
Sort Key: s.id, u.id
-> Hash Right Join (cost=2.58..11.26 rows=5 width=21)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.41 rows=141 width=13)
-> Hash (cost=2.51..2.51 rows=5 width=8)
-> Seq Scan on tbl_visible_reimbursements s (cost=0.00..2.51 rows=5 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 1011))