QUERY PLAN
Sort (cost=58.45..58.48 rows=12 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=12 width=44)
Filter: (contract_id = ANY ('{3830,3822,3816,3812,3811,3770,3809,3805,3803,3792}'::integer[]))