QUERY PLAN
Sort (cost=72.18..72.21 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..71.99 rows=11 width=26)
Filter: (contract_id = ANY ('{2749,3193,2947,3009,3022,2836,2948,2740,2823,3161}'::integer[]))