Re: Updating table, precautions?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Updating table, precautions?
Дата
Msg-id 200504221533.26763.josh@agliodbs.com
обсуждение исходный текст
Ответ на Updating table, precautions?  ("Anjan Dave" <adave@vantage.com>)
Список pgsql-performance
Anjan,

> This is what I used to find the table size, which probably doesn't
> include the index size. Is there a way to find out size of indexes?
>
> select relpages * 8192 as size_in_bytes from pg_class where relnamespace
> = (select oid from pg_namespace where nspname = 'public') and relname =
> 'r_itemcategory';

See the code in CVS in the "newsysviews" project in pgFoundry.   Andrew coded
up a nice pg_user_table_storage view which gives table, index and TOAST size.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: "Anjan Dave"
Дата:
Сообщение: Updating table, precautions?
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Sort and index