pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Cc: pgboy@guthrie.charm.net
Subject: Re: storage calculations
Date: Wed, 30 Jul 2003 01:23:31 +0200
Message-ID: <007201c35628$6d188570$10d4a8c0@mm.eutelsat.org> (raw)
References: <20030729180926.EFE0913EA6@guthrie.charm.net>

<pgboy@guthrie.charm.net> writes:
> i've been browsing the documentation online, and i can't
> find where the storage layouts for tables and indexes are
> explained.
> 
> i'd like to be able to figure out, given a table or two
> with a simple schema (no ineritance) and some indexes, and
> a number of rows currently in these tables, how much disk 
> space is being used.

oid2name | grep <your_db_name> 

give you the name of the directory where the database is stored
inside your $PGDATA directory.

In order to now the name of the file that correspond to your
table:

oid2name -d <your_db_name> -t <your_table_name>



Regards
Gaetano Mendola




view thread (8+ messages)  latest in thread

Message-ID: <007201c35628$6d188570$10d4a8c0@mm.eutelsat.org>
Permalink:  ../007201c35628$6d188570$10d4a8c0@mm.eutelsat.org/
Also on:    postgresql.org/message-id/007201c35628$6d188570$10d4a8c0@mm.eutelsat.org

 · 

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-admin@postgresql.org
  Cc: mendola@bigfoot.com, pgboy@guthrie.charm.net
  Subject: Re: storage calculations
  In-Reply-To: <007201c35628$6d188570$10d4a8c0@mm.eutelsat.org>
  References: <20030729180926.EFE0913EA6@guthrie.charm.net> <007201c35628$6d188570$10d4a8c0@mm.eutelsat.org>

* 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