QUERY PLAN
Sort (cost=78.28..78.33 rows=20 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..77.85 rows=20 width=16)
Filter: (contract_id = ANY ('{4079,4077,4074,4040,4007,3976,3970,3968,3948,3933,3907,3898,3894,3990,3860,3859,3847,3843,3830,3826}'::integer[]))