Re: Table using more disk space than expected

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Table using more disk space than expected
Дата
Msg-id 14838.1443027027@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Table using more disk space than expected  (Steve Pritchard <steve.pritchard@bto.org>)
Ответы Re: Table using more disk space than expected
Список pgsql-general
Steve Pritchard <steve.pritchard@bto.org> writes:
> -- Average length of a row in bytes:
> select avg(octet_length(t.*::text)) FROM observation t;
> -- 287 bytes

That measurement technique doesn't have a lot to do with reality,
I'm afraid.

The contrib/pgstattuple module could give you a more reliable idea of
how much space is in use or not in the table.

            regards, tom lane


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

Предыдущее
От: Steve Pritchard
Дата:
Сообщение: Table using more disk space than expected
Следующее
От: Jimit Amin
Дата:
Сообщение: Re: Table using more disk space than expected