QUERY PLAN
Sort (cost=46.58..46.59 rows=6 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..46.50 rows=6 width=44)
Filter: (contract_id = ANY ('{3843,3841,3840,3703,3550}'::integer[]))