QUERY PLAN
Sort (cost=71.03..71.07 rows=15 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..70.74 rows=15 width=26)
Filter: (contract_id = ANY ('{4035,3573,3645,3709,3737,3783,3844,3915,3998,4026,4016,4086,4082,4083}'::integer[]))