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®
[EMAIL PROTECTED]
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




--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to