QUERY PLAN
Sort (cost=51.36..51.38 rows=10 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..51.19 rows=10 width=34)
Filter: (contract_id = ANY ('{3364,1186,3841,3803,3840,3844,3843}'::integer[]))