QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..588.92 rows=20 width=16)
Filter: ((accessible_user = 1001) AND (document_id = ANY ('{736,742,573,556,741,728,149,493,444,740,525,739,738,564,570,702,586,730,707,523}'::integer[])))