QUERY PLAN
Sort (cost=55.28..55.32 rows=15 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..54.99 rows=15 width=26)
Filter: (contract_id = ANY ('{3664,4002,3926,4106,4055,4112,4105}'::integer[]))