QUERY PLAN
Sort (cost=45.83..45.84 rows=3 width=28)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..45.81 rows=3 width=28)
Filter: (contract_id = ANY ('{2909,1012,2182}'::integer[]))