---
title: "db-total-index-size"
description: "This command displays the total size of all indexes on the database. It is calculated by taking the number of pages (reported in `relpages`) and multiplying it by the page size (8192 bytes)."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/db-total-index-size
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:19:36.460Z
license: CC-BY-4.0
attribution: "db-total-index-size — Claudary (https://claudary.paisolsolutions.com/skills/db-total-index-size)"
---

# db-total-index-size
This command displays the total size of all indexes on the database. It is calculated by taking the number of pages (reported in `relpages`) and multiplying it by the page size (8192 bytes).

## Overview

# db-total-index-size

This command displays the total size of all indexes on the database. It is calculated by taking the number of pages (reported in `relpages`) and multiplying it by the page size (8192 bytes).

```
    SIZE
  ─────────
    12 MB
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/db-total-index-size) · https://claudary.paisolsolutions.com
