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 ('{4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,3756,3773,3747,3727,3726,3704,3663}'::integer[]))