QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..414.70 rows=9 width=16)
Filter: ((accessible_user = 1000) AND (document_id = ANY ('{501,500,15,720,718,719,714,715,716,717}'::integer[])))