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 ('{4486,4480,4494,4479,4478,4476,4467,4495,4462,4457}'::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 ('{4486,4480,4494,4479,4478,4476,4467,4495,4462,4457}'::integer[]))