QUERY PLAN
Sort (cost=21.75..21.75 rows=3 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=12.86..21.72 rows=3 width=26)
Recheck Cond: (contract_id = ANY ('{3300,3348,4494}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..12.86 rows=3 width=0)
Index Cond: (contract_id = ANY ('{3300,3348,4494}'::integer[]))