From: | Einar Karttunen <ekarttun(at)cs(dot)helsinki(dot)fi> |
---|---|
To: | "Thomas F(dot) O'Connell" <tfo(at)monsterlabs(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: frustration with database size <long> |
Date: | 2002-01-22 06:59:25 |
Message-ID: | 20020122065925.GB27936@shellak.helsinki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Holger Krug | 2002-01-22 07:30:23 | Re: How does one return rows from plpgsql functions? |
Previous Message | Gavin Sherry | 2002-01-22 06:49:06 | Re: [GENERAL] PostgreSQL Licence: GNU/GPL |