QUERY PLAN
Sort (cost=77.55..77.61 rows=24 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..77.00 rows=24 width=34)
Filter: (contract_id = ANY ('{3525,3537,3549,3550,3620,3598,3661,3703,3755,3724,3725,3746,3763,3841,3803,3840,3844,3843}'::integer[]))