QUERY PLAN
Sort (cost=55.06..55.09 rows=10 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..54.90 rows=10 width=16)
Filter: (contract_id = ANY ('{1487,677,1021,2365,51,1188,1523,2700,4133,3799}'::integer[]))