Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9DB5EB5DC13 for ; Wed, 14 Sep 2011 12:47:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 63222-02 for ; Wed, 14 Sep 2011 15:47:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 40C86B5DBD6 for ; Wed, 14 Sep 2011 12:47:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8EFlEua000905; Wed, 14 Sep 2011 11:47:14 -0400 (EDT) To: Rob Audenaerde cc: Guillaume Lelarge , "pgsql-admin@postgresql.org" Subject: Re: database size much bigger than tablespaces on filesystem In-reply-to: <1D020918205F334CBDD5CE7DF2038A2E15A581245A@IE2RD2XVS271.red002.local> References: <1D020918205F334CBDD5CE7DF2038A2E15A5812457@IE2RD2XVS271.red002.local>, <1316001615.2110.13.camel@localhost.localdomain> <1D020918205F334CBDD5CE7DF2038A2E15A581245A@IE2RD2XVS271.red002.local> Comments: In-reply-to Rob Audenaerde message dated "Wed, 14 Sep 2011 08:21:33 -0700" Date: Wed, 14 Sep 2011 11:47:14 -0400 Message-ID: <904.1316015234@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/99 X-Sequence-Number: 38336 Rob Audenaerde writes: >>> I check te database size like this: >>> select pg_size_pretty(pg_database_size('database')) >>> 595 GB >> You should also check the space held in $PGDATA/base. > I did. It is only 320 MB. Bizarre. Try breaking the results down table-by-table to see if you can find where the discrepancy is. regards, tom lane