QUERY PLAN
Sort (cost=82.22..82.27 rows=23 width=34)
Sort Key: id
-> Seq Scan on tbl_sales_contract_payments (cost=0.00..81.70 rows=23 width=34)
Filter: (contract_id = ANY ('{3626,3736,3764,3713,3740,3768,3822,3797,3805,3795,3792,3812,3789,3816,3831,3830,3803,3844,3843,3845}'::integer[]))