QUERY PLAN
Sort (cost=11.06..11.06 rows=1 width=21)
Sort Key: u.name
-> Group (cost=11.04..11.05 rows=1 width=21)
Group Key: s.id, u.id
-> Sort (cost=11.04..11.04 rows=1 width=21)
Sort Key: s.id, u.id
-> Hash Join (cost=3.16..11.03 rows=1 width=21)
Hash Cond: (u.id = s.accessible_user)
-> Seq Scan on tbl_users u (cost=0.00..7.76 rows=24 width=13)
Filter: (user_status = '1'::type_global_user_status)
-> Hash (cost=3.15..3.15 rows=1 width=8)
-> Seq Scan on tbl_visible_calendars s (cost=0.00..3.15 rows=1 width=8)
Filter: ((accessible_user IS NOT NULL) AND (user_id = 5446))