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 ('{2337,2533,2572,2584,2789,2741,2740,2749,3208,3228}'::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 ('{2337,2533,2572,2584,2789,2741,2740,2749,3208,3228}'::integer[]))