QUERY PLAN
Sort (cost=37.31..37.34 rows=11 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=17.48..37.12 rows=11 width=26)
Recheck Cond: (contract_id = ANY ('{3325,4074,3705,3679,4497}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..17.47 rows=11 width=0)
Index Cond: (contract_id = ANY ('{3325,4074,3705,3679,4497}'::integer[]))