QUERY PLAN
Sort (cost=46.62..46.64 rows=8 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..46.50 rows=8 width=34)
Filter: (contract_id = ANY ('{1186,3108,3830,3842,3803}'::integer[]))