Re: Need to calculate total size of a table along with BLOB data assosciated with it.

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Need to calculate total size of a table along with BLOB data assosciated with it.
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B50FA8EB2@ntex2010i.host.magwien.gv.at
обсуждение исходный текст
Ответ на Need to calculate total size of a table along with BLOB data assosciated with it.  (girish R G peetle <giri.anamika0@gmail.com>)
Ответы Re: Need to calculate total size of a table along with BLOB data assosciated with it.  (girish R G peetle <giri.anamika0@gmail.com>)
Список pgsql-admin
girish R G peetle wrote:
> PostgreSQL system function, pg_total_relation_size() doesn't include BLOB data size that is associated
> with the table.
> 
> TAR dump restore fails if the BLOB data size associated with a table is more than 8GB. (Which is
> limitation of TAR format).
> 
> I know we can switch to compressed dump format. But wanted to know if there a way to know true size of
> a table.

Not easily, because technically, large objects don't belong to a table.

You'd have to write your own that scans the table and adds the size of
all referenced large objects.
It can probably be done in one SELECT using lo_lseek.

Yours,
Laurenz Albe

В списке pgsql-admin по дате отправления:

Предыдущее
От: girish R G peetle
Дата:
Сообщение: Need to calculate total size of a table along with BLOB data assosciated with it.
Следующее
От: girish R G peetle
Дата:
Сообщение: Re: Need to calculate total size of a table along with BLOB data assosciated with it.