From: Josh Berkus <josh@agliodbs.com>
To: Anjan Dave <adave@vantage.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Updating table, precautions?
Date: Fri, 22 Apr 2005 15:33:26 -0700
Message-ID: <200504221533.26763.josh@agliodbs.com> (raw)
In-Reply-To: <4BAFBB6B9CC46F41B2AD7D9F4BBAF785098984@vt-pe2550-001.vantage.vantage.com>
References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF785098984@vt-pe2550-001.vantage.vantage.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, adave@vantage.com
Subject: Re: Updating table, precautions?
In-Reply-To: <200504221533.26763.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox