QUERY PLAN
Sort (cost=50.78..50.81 rows=11 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=30.88..50.59 rows=11 width=26)
Recheck Cond: (contract_id = ANY ('{4492,4491,4496,4324,4497,4493,4481,4479,4480,4486}'::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 ('{4492,4491,4496,4324,4497,4493,4481,4479,4480,4486}'::integer[]))