Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 7EF8C476713 for ; Thu, 4 Jul 2002 10:44:28 -0400 (EDT) Mailbox-Line: From pgman@candle.pha.pa.us Thu Jul 4 10:44:28 2002 Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id B4223476170 for ; Thu, 4 Jul 2002 10:26:53 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g64EQmF07696; Thu, 4 Jul 2002 10:26:48 -0400 (EDT) From: Bruce Momjian Message-Id: <200207041426.g64EQmF07696@candle.pha.pa.us> Subject: Re: Which DB is using space. In-Reply-To: <200207041425.14911.gary.stainburn@ringways.co.uk> To: Gary Stainburn Date: Thu, 4 Jul 2002 10:26:48 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200207/61 X-Sequence-Number: 4747 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