QUERY PLAN
Sort (cost=46.43..46.46 rows=10 width=29)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=26.59..46.27 rows=10 width=29)
Recheck Cond: (contract_id = ANY ('{3232,2865,2776,1934,1872,1843,1842,1756,1697}'::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 ('{3232,2865,2776,1934,1872,1843,1842,1756,1697}'::integer[]))