QUERY PLAN
Group (cost=13.32..13.33 rows=1 width=12)
Group Key: u.id, s.id
-> Sort (cost=13.32..13.32 rows=1 width=12)
Sort Key: u.id, s.id
-> Hash Join (cost=5.45..13.31 rows=1 width=12)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.74 rows=30 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=5.44..5.44 rows=1 width=8)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..5.44 rows=1 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5295))