QUERY PLAN
Sort (cost=58.47..58.51 rows=13 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=13 width=44)
Filter: (contract_id = ANY ('{3843,3841,3840,3836,3844,3835,3803,3763,3755,3746}'::integer[]))