QUERY PLAN
Sort (cost=86.32..86.37 rows=20 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..85.89 rows=20 width=16)
Filter: (contract_id = ANY ('{4398,4401,4397,4395,4391,4416,4392,4387,4389,4384,4382,4380,4379,4376,4372,4370,4369,4368,4367,4365}'::integer[]))