Re: Table size - Mailing list pgsql-general

From Erik Jones
Subject Re: Table size
Date
Msg-id 7224B23D-6BF7-440D-8454-B4245C160107@myemma.com
Whole thread Raw
In response to Table size  (lak <lakindia89@gmail.com>)
List 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 by date:

Previous
From: Shane Ambler
Date:
Subject: Re: Table size
Next
From: Craig Ringer
Date:
Subject: Re: Table size