Re: Table size

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: Table size
Дата
Msg-id 7224B23D-6BF7-440D-8454-B4245C160107@myemma.com
обсуждение исходный текст
Ответ на Table size  (lak <lakindia89@gmail.com>)
Список pgsql-general
On Mar 21, 2008, at 4:33 AM, lak wrote:

> I have two questions.
> How can I enter comments into a table? Where the comments are stored?

Comments are created with the COMMENT sql command and, in pg, are
stored in pg_description.

> In  psql How can I know the size of a single table?


pg_relation_size()

Often called as pg_size_pretty(pg_relation_size('some_table')) for
more readable output.

Use pg_total_relation_size() for the size with indexes and toast tables.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com




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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: Table size
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Table size