QUERY PLAN
Sort (cost=85.64..85.68 rows=16 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..85.32 rows=16 width=26)
Filter: (contract_id = ANY ('{1756,2472,2225,1842,1843,2141,1734,1872,1930,1934,1946,2542,1702,2340,2349}'::integer[]))