QUERY PLAN
Seq Scan on tbl_visible_documents (cost=0.00..284.58 rows=31 width=16)
Filter: ((accessible_user IS NOT NULL) AND (document_id = 697))