various questions on column sizes & cleaning up - Mailing list pgsql-general

From charette@writeme.com (Stephane Charette)
Subject various questions on column sizes & cleaning up
Date
Msg-id 1be4bb40.0303191409.3203e5a0@posting.google.com
Whole thread Raw
List pgsql-general
We've inherited another linux postgres database project with many
tables.  We're trying to get a better understanding of the physical
disk space properties and requirements for this database.

(Nice trick:  running "select relname, relfilenode from pg_class where
relname not like 'pg%' order by relfilenode;" helped us determine
which table and index maps to which physical file.)

My questions:

- Is there a SQL command I can run to determine the actual size of a
row within a table?  (Or the byte sizes of each individual columns?)

- Is there a listing of the column types and the number of bytes
required?

- Does running vacuum clean up the indexes as well as tables?

- Or is there a different command we should also run for the indexes?

- Or is nothing necessary for the indexes?

Thanks in advance!

Stephane Charette

pgsql-general by date:

Previous
From: "Mr. why?"
Date:
Subject: Expanded display (\x) seems to affect display of latin1 chars
Next
From: chamal desilva
Date:
Subject: Starting postmaster