QUERY PLAN
Group (cost=12.54..12.55 rows=1 width=12)
Group Key: u.id, s.id
-> Sort (cost=12.54..12.54 rows=1 width=12)
Sort Key: u.id, s.id
-> Hash Join (cost=4.66..12.53 rows=1 width=12)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.76 rows=24 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=4.65..4.65 rows=1 width=8)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..4.65 rows=1 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5446))