QUERY PLAN
Sort (cost=58.53..58.56 rows=15 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..58.23 rows=15 width=34)
Filter: (contract_id = ANY ('{3363,3703,3724,3763,1558,3415,3348,3502,3235,3838}'::integer[]))