QUERY PLAN
Sort (cost=51.31..51.33 rows=8 width=44)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..51.19 rows=8 width=44)
Filter: (contract_id = ANY ('{3649,3636,3170,2732,2733,2551,2014}'::integer[]))