QUERY PLAN
Sort (cost=48.95..48.96 rows=7 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..48.85 rows=7 width=34)
Filter: (contract_id = ANY ('{3364,3732,3830,3844,3843,3845}'::integer[]))