Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 46199632735 for ; Wed, 5 May 2010 08:47:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 73121-09 for ; Wed, 5 May 2010 11:47:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gunduz.org (ns1.gunduz.org [77.79.103.58]) by mail.postgresql.org (Postfix) with ESMTP id 090706323B2 for ; Wed, 5 May 2010 08:47:24 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.gunduz.org (Postfix) with ESMTP id B1765400049; Wed, 5 May 2010 14:50:47 +0300 (EEST) X-Virus-Scanned: amavisd-new at mail.gunduz.org Received: from mail.gunduz.org ([127.0.0.1]) by localhost (mail.gunduz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L0kxcjqbsHIJ; Wed, 5 May 2010 14:50:45 +0300 (EEST) Received: from [10.15.1.43] (unknown [84.51.49.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gunduz.org (Postfix) with ESMTPSA id E7A33400046; Wed, 5 May 2010 14:50:44 +0300 (EEST) Subject: Re: Table space grow big - PostgreSQL From: Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= To: Khangelani Gama Cc: "pgsql-admin@postgresql.org" In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-/Vmx7xYSkG9YZ0RGA8fc" Date: Wed, 05 May 2010 14:47:15 +0300 Message-ID: <1273060035.5906.24.camel@hp-laptop2.gunduz.org> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/52 X-Sequence-Number: 34525 --=-/Vmx7xYSkG9YZ0RGA8fc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2010-05-05 at 13:36 +0200, Khangelani Gama wrote: > The main question I have is: What makes > the /usr/local/pgsql/data/base/95186722/ grow so big while the actual > data with its schema is only 2.8G and that is there a way to reduce > the table space sizes or anything related to that? Which PostgreSQL version is this? I'm assuming it is an old one, since you are running Red Hat 9.=20 Have you vacuumed it recently/regularly? If not, dead space (space that is consumed by dead tuples) will consume lots of disk space, until they are vacuumed. However, If you haven't vacuumed for a long time, it may be the best to dump/restore the database, and then apply regular maintenance: http://www.postgresql.org/docs/current/static/maintenance.html Regards,=20 --=20 Devrim G=C3=9CND=C3=9CZ PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer PostgreSQL RPM Repository: http://yum.pgrpms.org Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz --=-/Vmx7xYSkG9YZ0RGA8fc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAkvhWsEACgkQtl86P3SPfQ6i0ACdEz2E9vGSwmcZf88t3oLd4Y15 lTEAoJVDcNeUhObzwR7rUNK4OFB2EMrE =Vnxs -----END PGP SIGNATURE----- --=-/Vmx7xYSkG9YZ0RGA8fc--