QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..443.44 rows=311 width=16)
Filter: ((accessible_user IS NOT NULL) AND (document_id = ANY ('{631,444,695,624,568,526,502,655,665,658}'::integer[])))