QUERY PLAN
Sort (cost=53.68..53.71 rows=9 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..53.54 rows=9 width=34)
Filter: (contract_id = ANY ('{3364,3732,3831,3830,3840,3843,3844,3845}'::integer[]))