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 ('{4426,4433,3915,4257,4388}'::integer[]))