QUERY PLAN
Sort (cost=64.03..64.06 rows=12 width=28)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..63.82 rows=12 width=28)
Filter: (contract_id = ANY ('{2909,2261,2326,2327,1012,2182,2566,2565,2627,2626,2564}'::integer[]))