Re: storage calculations

From: "Mendola Gaetano" <mendola(at)bigfoot(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Cc: <pgboy(at)guthrie(dot)charm(dot)net>
Subject: Re: storage calculations
Date: 2003-07-29 23:23:31
Message-ID: 007201c35628$6d188570$10d4a8c0@mm.eutelsat.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

<pgboy(at)guthrie(dot)charm(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Arthur Ward 2003-07-29 23:33:30 Re: syslog enabled causes random hangs?
Previous Message Tom Lane 2003-07-29 23:19:39 Re: parallel regression test failure