QUERY PLAN
Sort (cost=72.70..72.75 rows=20 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..72.27 rows=20 width=16)
Filter: (contract_id = ANY ('{3826,3824,3804,3799,3794,3798,3786,3675,3644,3624,3622,3590,3586,3587,3551,3684,3534,3532,3523,3518}'::integer[]))