QUERY PLAN
Sort (cost=59.62..59.64 rows=8 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..59.50 rows=8 width=26)
Filter: (contract_id = ANY ('{4073,4159,3497,3699,3805,3796,2941,2766}'::integer[]))