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