QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..324.29 rows=1 width=16)
Filter: ((accessible_user = 1001) AND (document_id = 697))