QUERY PLAN
Sort (cost=49.02..49.04 rows=6 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..48.94 rows=6 width=16)
Filter: (contract_id = ANY ('{3986,3110,2937,2862,845,841}'::integer[]))