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 ('{3696,3808,3795,3816,3803}'::integer[]))