QUERY PLAN
Sort (cost=50.78..50.81 rows=11 width=29)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=30.88..50.59 rows=11 width=29)
Recheck Cond: (contract_id = ANY ('{4497,4496,4492,4491,4486,4483,4480,4494,4479,4478}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..30.88 rows=11 width=0)
Index Cond: (contract_id = ANY ('{4497,4496,4492,4491,4486,4483,4480,4494,4479,4478}'::integer[]))