QUERY PLAN
Sort (cost=41.83..41.84 rows=3 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..41.81 rows=3 width=34)
Filter: (contract_id = ANY ('{3841,3840,3843}'::integer[]))