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 ('{195,1186,1558,1755,1930,3364,3998,4024,4304,4388}'::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 ('{195,1186,1558,1755,1930,3364,3998,4024,4304,4388}'::integer[]))