QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..359.75 rows=6 width=16)
Filter: ((accessible_user = 1000) AND (document_id = ANY ('{711,45,44,43,42,41,27}'::integer[])))