QUERY PLAN
Sort (cost=58.45..58.48 rows=12 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=12 width=34)
Filter: (contract_id = ANY ('{3392,3525,3549,3661,3755,3725,3746,2708,656,3232}'::integer[]))