QUERY PLAN
Sort (cost=81.61..81.66 rows=20 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..81.18 rows=20 width=16)
Filter: (contract_id = ANY ('{1182,2204,755,3640,2218,517,1985,2605,2834,1016,247,191,1063,1122,1331,1838,432,2383,1825,692}'::integer[]))