QUERY PLAN
Sort (cost=58.81..58.88 rows=25 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=25 width=44)
Filter: (contract_id = ANY ('{3835,1044,1414,2286,2447,1866,3493,1541,765,229}'::integer[]))