QUERY PLAN
Sort (cost=46.43..46.46 rows=10 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=26.59..46.27 rows=10 width=26)
Recheck Cond: (contract_id = ANY ('{4493,4494,4495,4481,4480,4324,4479,4478,4486}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..26.59 rows=10 width=0)
Index Cond: (contract_id = ANY ('{4493,4494,4495,4481,4480,4324,4479,4478,4486}'::integer[]))