QUERY PLAN
Sort (cost=74.93..74.96 rows=14 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..74.66 rows=14 width=26)
Filter: (contract_id = ANY ('{4486,4494,4480,1186,2865,4467,4476,4462,4479,4457,4478}'::integer[]))