QUERY PLAN
Sort (cost=53.68..53.71 rows=13 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=31.45..53.44 rows=13 width=26)
Recheck Cond: (contract_id = ANY ('{4493,4494,4495,4480,4453,4467,4476,4462,4479,4457,4478,4486}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..31.45 rows=13 width=0)
Index Cond: (contract_id = ANY ('{4493,4494,4495,4480,4453,4467,4476,4462,4479,4457,4478,4486}'::integer[]))