# Get basic database table, size and count statistics

**URL:** <https://meta.discourse.org/t/get-basic-database-table-size-and-count-statistics/68783>\
**Category:** Sysadmins\
**Tags:** how-to\
**Created:** [August 25, 2017, 2:28pm UTC](https://meta.discourse.org/t/get-basic-database-table-size-and-count-statistics/68783 "2017-08-25T14:28:05Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [July 3, 2019, 10:15am UTC](https://meta.discourse.org/t/get-basic-database-table-size-and-count-statistics/68783/9 "2019-07-03T10:15:18Z")

</div>

This is not Discourse specific, but you can run this to know the size of the whole database

```plaintext
./launcher enter app
rails db
SELECT pg_size_pretty(pg_database_size(current_database()));

```

---

_[View the full topic](https://meta.discourse.org/t/get-basic-database-table-size-and-count-statistics/68783)._
