QUERY PLAN
Sort (cost=56.03..56.04 rows=4 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..55.99 rows=4 width=26)
Filter: (contract_id = ANY ('{4496,4497,4491,4492}'::integer[]))