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 ('{4394,4386,4385,4377,4417,4388,4414,4422,4426,4430}'::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 ('{4394,4386,4385,4377,4417,4388,4414,4422,4426,4430}'::integer[]))