X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 34F20476018 for ; Tue, 4 Mar 2003 04:21:49 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 43919-08 for ; Tue, 4 Mar 2003 04:21:47 -0500 (EST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by postgresql.org (Postfix) with ESMTP id 7C5A9476011 for ; Tue, 4 Mar 2003 04:21:47 -0500 (EST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 18q8cO-0000np-0Z; Tue, 04 Mar 2003 09:21:48 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 6FD1E1721A; Tue, 4 Mar 2003 09:21:46 +0000 (GMT) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id 6CB3B171F8; Tue, 4 Mar 2003 09:21:45 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: "Ries van Twisk" , Subject: Re: Checking my HD space (noarchive) Date: Tue, 4 Mar 2003 09:20:52 +0000 User-Agent: KMail/1.4.3 References: <000201c2e1a3$180cdc10$f100000a@IT001> In-Reply-To: <000201c2e1a3$180cdc10$f100000a@IT001> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200303040920.52946.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200303/110 X-Sequence-Number: 12150 On Monday 03 Mar 2003 4:36 pm, Ries van Twisk wrote: > Hi All, > > My bare text table is in size around 6Mb while the footprint of my databa= se > on HD (using du) is around 24Mb (after a vacuum -f) > I have normalized the tables on places where I could do it. > For your reference it's a squid2.2 access.log textfile. > How can I check witch tables/indexes takes up so much space? Your database files have a name equal to the object's oid. So if you have a= =20 table with oid=3D1234 look for a file named "1234". You can figure out oids= =20 manually, but there's a tool "oid2name" in the contrib folder of the source= =20 distribution which can help you. A 3x increase over a raw text file isn't unexpected once you allow for=20 structure overheads, indexes etc. > And I did understand that postgresql can compress text but it seems that > this is not the default case. > can anybody tell me somthing about it and/or point my to a url?? I think you're talking about TOAST - check the manuals and techdocs, there'= s a=20 section about it somewhere. It's automatic for large textfields, and was=20 originally developed to work around PG's old 8k rowsize limit. HTH --=20 Richard Huxton