QUERY PLAN
Group (cost=12.74..12.75 rows=1 width=12)
Group Key: u.id, s.id
-> Sort (cost=12.74..12.74 rows=1 width=12)
Sort Key: u.id, s.id
-> Hash Join (cost=4.86..12.73 rows=1 width=12)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.76 rows=25 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=4.85..4.85 rows=1 width=8)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..4.85 rows=1 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5295))