QUERY PLAN
Sort (cost=53.68..53.71 rows=9 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..53.54 rows=9 width=44)
Filter: (contract_id = ANY ('{3437,3316,3015,2788,2690,2487,2498,2260}'::integer[]))