QUERY PLAN
Sort (cost=56.03..56.04 rows=4 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..55.99 rows=4 width=29)
Filter: (contract_id = ANY ('{4483,4289,2818,2358}'::integer[]))