QUERY PLAN
Group (cost=43.50..43.51 rows=1 width=12)
Group Key: u.id, s.id
-> Sort (cost=43.50..43.50 rows=1 width=12)
Sort Key: u.id, s.id
-> Nested Loop (cost=0.00..43.49 rows=1 width=12)
Join Filter: (s.accessible_user = u.id)
-> Seq Scan on tbl_users u (cost=0.00..10.25 rows=1 width=4)
Filter: (user_status = '1'::type_global_user_status)
-> Seq Scan on tbl_visible_work_logs s (cost=0.00..33.12 rows=9 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5495))