QUERY PLAN
Sort (cost=58.64..58.68 rows=19 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=19 width=44)
Filter: (contract_id = ANY ('{3366,3386,2236,3259,3484,3459,2269,3477,3681,2286}'::integer[]))