QUERY PLAN
Sort (cost=57.40..57.42 rows=5 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..57.34 rows=5 width=26)
Filter: (contract_id = ANY ('{4481,4467,4476,4462,4457}'::integer[]))