pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: webmaster@tony.cz
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] SQL query to check size of database
Date: Wed, 14 Jul 1999 09:35:14 -0400
Message-ID: <25329.931959314@sss.pgh.pa.us> (raw)
In-Reply-To: <99071415050002.01288@localhost.localdomain>

webmaster <webmaster@tony.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



view thread (2+ messages)

Message-ID: <25329.931959314@sss.pgh.pa.us>
Permalink:  ../25329.931959314@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25329.931959314@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, webmaster@tony.cz
  Subject: Re: [SQL] SQL query to check size of database
  In-Reply-To: <25329.931959314@sss.pgh.pa.us>
  References: <99071415050002.01288@localhost.localdomain> <25329.931959314@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox