| От | Kevin Kempter |
|---|---|
| Тема | select actual data size for a relation? |
| Дата | |
| Msg-id | 200910221741.38657.kevink@consistentstate.com обсуждение исходный текст |
| Ответы |
Re: select actual data size for a relation?
Re: select actual data size for a relation? |
| Список | pgsql-admin |
Hi all; Anyone know how to select / calculate the actual data size for a table or index? NOT the disk usage as in: pg_class.relpages -- shows disk usage including bloat pg_relation_size() -- same as pg_class.relpages but in bytes or pg_total_relation_size() -- total disk usage inclusive of bloat and indexes I want only the data size. I tried grabbing the sum of all the avg_width cols from pg_stats and multiplying times the pg_class.reltuples but this seems way too big. Thoughts? Thanks in advance
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера