QUERY PLAN
Sort (cost=45.68..45.69 rows=3 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..45.66 rows=3 width=26)
Filter: (contract_id = ANY ('{4071,1558,4144}'::integer[]))