Re: Disk usage

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: shridhar_daithankar(at)persistent(dot)co(dot)in, pgsql-general(at)postgresql(dot)org
Subject: Re: Disk usage
Date: 2003-05-08 19:46:36
Message-ID: 20030508194636.GF4623@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, May 08, 2003 at 10:39:48AM -0400, Tom Lane wrote:

> Or do
>
> vacuum;
> select relname, relpages * 8 from pg_class;
>
> to get table sizes in kilobytes. relpages is not updated on-the-fly,
> only by vacuum, so you need to have done vacuum recently to get
> trustworthy numbers.

Doesn't ANALYZE update relpages values?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"God is real, unless declared as int"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-05-08 19:57:56 Re: Disk usage
Previous Message Dean Gibson (DB Administrator) 2003-05-08 19:32:51 Including files