Re: size in bytes of a table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: size in bytes of a table?
Дата
Msg-id 12514.1108147414@sss.pgh.pa.us
обсуждение исходный текст
Ответ на size in bytes of a table?  (Mark Harrison <mh@pixar.com>)
Список pgsql-general
Mark Harrison <mh@pixar.com> writes:
> I'd like to present some statistics on our database tables,
> showing the number of rows and approximate amount of data
> in bytes, e.g. something like this from one of our other
> databases:

> tasks  (546916 Kb,62018 rows)

> Exact numbers don't matter, I just want to present a feel
> for the amount of data we have.

Do a vacuum and then SELECT relname, relpages * 8K, reltuples FROM pg_class

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: size in bytes of a table?
Следующее
От: "Ignacio Colmenero"
Дата:
Сообщение: ERROR: control reached end of function without RETURN