QUERY PLAN
Sort (cost=63.38..63.43 rows=21 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=37.76..62.91 rows=21 width=26)
Recheck Cond: (contract_id = ANY ('{4496,4497,4492,4493,4494,4495,4481,4480,4443,4450,4446,4453,4467,4476,4462,4479,4457,4478,4486,4491}'::integer[]))
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..37.75 rows=21 width=0)
Index Cond: (contract_id = ANY ('{4496,4497,4492,4493,4494,4495,4481,4480,4443,4450,4446,4453,4467,4476,4462,4479,4457,4478,4486,4491}'::integer[]))