QUERY PLAN
Sort (cost=78.19..78.23 rows=17 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..77.84 rows=17 width=16)
Filter: (contract_id = ANY ('{4487,4485,4482,4477,4474,4475,4471,4472,4470,4473,4466,4465,4451,2364,2216,2198,2114}'::integer[]))