QUERY PLAN
Sort (cost=58.72..58.73 rows=5 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..58.66 rows=5 width=26)
Filter: (contract_id = ANY ('{4481,4450,4453,4462,4457}'::integer[]))