QUERY PLAN
Group (cost=12.43..12.44 rows=1 width=12)
Group Key: u.id, s.id
-> Sort (cost=12.43..12.44 rows=1 width=12)
Sort Key: u.id, s.id
-> Hash Join (cost=4.40..12.42 rows=1 width=12)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.80 rows=24 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=4.34..4.34 rows=5 width=8)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..4.34 rows=5 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 1015))