QUERY PLAN
Sort (cost=82.28..82.34 rows=25 width=18)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..81.70 rows=25 width=18)
Filter: (contract_id = ANY ('{3354,3740,3749,2247,2270,1424,1502,2086,2536,1875,2448,2522,3205,1733,1558,3841,3803,3840,3844,3843}'::integer[]))