From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Which DB is using space.
Date: Thu, 4 Jul 2002 10:26:48 -0400 (EDT)
Message-ID: <200207041426.g64EQmF07696@candle.pha.pa.us> (raw)
In-Reply-To: <200207041425.14911.gary.stainburn@ringways.co.uk>
Gary Stainburn wrote:
> Hi all,
>
> Below is the output from 'du -kx /|sort -rn|head'. It's showing that
> /var/lib/pgsql/data/base/46169 is using a big chunk of my disk.
>
> How can I tell which DB this is?
> What suggestions can people make to reduce the amount of disk space used by
> this DB?
>
> __BEGIN__
> 361365 /
> 282030 /var
> 232427 /var/lib
> 186879 /var/lib/pgsql
> 186874 /var/lib/pgsql/data
> 153866 /var/lib/pgsql/data/base
> 122399 /var/lib/pgsql/data/base/46169
> 40675 /lib
> __END__
>
> Ta
> --
> Gary Stainburn
>
> This email does not contain private or confidential material as it
> may be snooped on by interested government parties for unknown
> and undisclosed purposes - Regulation of Investigatory Powers Act, 2000
Sure, see contrib/oid2name. It generates a list of oid/dbname pairs.
Also, I recommend getting oid2name from the snapshot/CVS and using that.
It has the newer readme and some changes to make the examples display
properly. Also see the new doc section for 7.3 on disk usage:
http://developer.postgresql.org/docs/postgres/diskusage.html
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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: pgman@candle.pha.pa.us, gary.stainburn@ringways.co.uk
Subject: Re: Which DB is using space.
In-Reply-To: <200207041426.g64EQmF07696@candle.pha.pa.us>
References: <200207041425.14911.gary.stainburn@ringways.co.uk> <200207041426.g64EQmF07696@candle.pha.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