Re: Calculation of Database Size in postgres

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: Calculation of Database Size in postgres
Дата
Msg-id
20180214142511.GB2416@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
Calculation of Database Size in postgres pavan95 <pavan.postgresdba@gmail.com>
Re: Calculation of Database Size in postgres Laurenz Albe <laurenz.albe@cybertec.at>
Re: Calculation of Database Size in postgres pavan95 <pavan.postgresdba@gmail.com>
Re: Calculation of Database Size in postgres Laurenz Albe <laurenz.albe@cybertec.at>
Re: Calculation of Database Size in postgres pavan95 <pavan.postgresdba@gmail.com>
Re: Calculation of Database Size in postgres Stephen Frost <sfrost@snowman.net>
Greetings,

* pavan95 (pavan.postgresdba@gmail.com) wrote:
> Ok, In that case some data files(which in turn consists pages) might be
> partially filled. 
> 
> In that case the size of the database with data will be different to the
> size of the database calculated with respect to files size on disk. 
> 
> So how to calculate the size of only data and not the free space in the
> database?

You can look at the free space map using the pg_freespacemap extension,
or you can use the pgstattuple extension to look at free space in both
the heap and the indexes.  Note that pgstattuple will scan the table,
while the freespacemap extension just looks at the FSM.

Thanks!

Stephen
В списке pgsql-admin по дате отправления
От: Stephen Frost
Дата:
От: Shreeyansh Dba
Дата:
Сообщение: Re: filter partitions
FAQ