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