Re: contrib/dbsize

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: contrib/dbsize
Date: 2005-04-05 17:03:00
Message-ID: 20050405170300.GA26329@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Apr 05, 2005 at 12:24:02PM -0400, Joseph Shraibman wrote:
>
> How come relation_size() doesn't work on an index?

Could you define "doesn't work"? An example with the expected and
actual output might show what's happening.

I just ran some simple tests and relation_size() correctly showed
the on-disk size of the file that stores the index. Are you expecting
something different? Or have you found a case where relation_size()
returns the wrong value?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Rysdam 2005-04-05 17:19:13 Re: Check for existence of index
Previous Message Tom Lane 2005-04-05 16:59:44 Re: Vacuum time degrading