QUERY PLAN
Sort (cost=43.07..43.08 rows=2 width=30)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..43.06 rows=2 width=30)
Filter: (contract_id = ANY ('{4091,1558}'::integer[]))