Re: frustration with database size - Mailing list pgsql-general

From Einar Karttunen
Subject Re: frustration with database size
Date
Msg-id 20020122065925.GB27936@shellak.helsinki.fi
Whole thread Raw
In response to Re: frustration with database size  ("Thomas F. O'Connell" <tfo@monsterlabs.com>)
List pgsql-general
On 21.01.02 14:40 -0600(+0000), Thomas F. O'Connell wrote:
> >An easy way to get some data is to do a VACUUM so that the relpages
> >statistics are up to date, and then do
> >
> >select relname,relkind,relpages from pg_class order by relpages desc;
>
>
> well, that certainly is data. but what does it mean?
> what does this query actually spell out?
> to what do relkind and relpages refere?
> just curious.
>
It's documented in the developers guide:
http://www.postgresql.org/idocs/index.php?catalog-pg-class.html

relname         Name of the table, index, view, etc.
relkind         'r'=ordinary table,'i'=index,'S'=sequence,'v'=view,
                's'=special,'t'=secondary TOAST table
relpages        Size of the on-disk representation of this table in pages
                (size BLCKSZ).  This is only an approximate value
                   which is calculated during vacuum.

- Einar Karttunen

pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: PostgreSQL Licence: GNU/GPL
Next
From: Holger Krug
Date:
Subject: Re: How does one return rows from plpgsql functions?