QUERY PLAN
GroupAggregate (cost=9.51..9.58 rows=2 width=108)
Group Key: ledger_account_caption_id
-> Sort (cost=9.51..9.52 rows=2 width=100)
Sort Key: ledger_account_caption_id
-> Bitmap Heap Scan on tbl_ledger_auxiliary_opening_balances (cost=4.16..9.50 rows=2 width=100)
Recheck Cond: (ledger_id = 1)
-> Bitmap Index Scan on idx_tbl_ledger_auxiliary_opening_balances_unique_item (cost=0.00..4.16 rows=2 width=0)
Index Cond: (ledger_id = 1)