Re: [SQL] SQL query to check size of database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: webmaster(at)tony(dot)cz
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] SQL query to check size of database
Date: 1999-07-14 13:35:14
Message-ID: 25329.931959314@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

webmaster <webmaster(at)tony(dot)cz> writes:
> Is there any way how to retrieve the information about file sizes with
> some SQL query? I know I can do something like SELECT * FROM
> pg_classes but I'm not sure if i can use the information from fields
> 'reltuples' and 'relpages' - I was experimenting with those values but
> without succes - trying to find the constant value of the page size -
> it seems not work.

I think relpages is accurate after a VACUUM, but it's not maintained
on-the-fly...

regards, tom lane

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-07-14 14:00:02 Re: [SQL] WHERE clause?
Previous Message webmaster 1999-07-14 12:52:46 SQL query to check size of database