QUERY PLAN
Sort (cost=53.07..53.10 rows=13 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=30.88..52.83 rows=13 width=26)
Recheck Cond: (contract_id = ANY ('{3188,3768,3886,3953,4130,4198,4305,4260,4262,4313}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..30.88 rows=13 width=0)
Index Cond: (contract_id = ANY ('{3188,3768,3886,3953,4130,4198,4305,4260,4262,4313}'::integer[]))