QUERY PLAN
Sort (cost=63.77..63.80 rows=12 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..63.56 rows=12 width=26)
Filter: (contract_id = ANY ('{4078,4075,195,4024,4055,4061,4068,4020,4071,4044,2351}'::integer[]))