QUERY PLAN
Group (cost=13.73..13.78 rows=7 width=12)
Group Key: u.id, s.id
-> Sort (cost=13.73..13.75 rows=7 width=12)
Sort Key: u.id, s.id
-> Hash Join (cost=8.11..13.63 rows=7 width=12)
Hash Cond: (s.accessible_user = u.id)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..5.44 rows=32 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 1005))
-> Hash (cost=7.74..7.74 rows=30 width=4)
-> Seq Scan on tbl_users u (cost=0.00..7.74 rows=30 width=4)
Filter: (user_status = '1'::type_global_user_status)