QUERY PLAN
Sort (cost=59.80..59.82 rows=9 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..59.65 rows=9 width=26)
Filter: (contract_id = ANY ('{4071,3364,3665,4016,1558,4132,4131,4112,4111}'::integer[]))