QUERY PLAN
Aggregate (cost=8.17..8.18 rows=1 width=32)
-> Index Scan using idx_tbl_ledger_auxiliary_opening_balances_unique_item on tbl_ledger_auxiliary_opening_balances (cost=0.15..8.17 rows=1 width=32)
Index Cond: ((ledger_id = 1) AND (ledger_account_caption_id = 32))