Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOmoE-0004Jh-JP for pgsql-performance@arkaria.postgresql.org; Tue, 12 Dec 2017 15:49:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOmoD-0008H3-UD for pgsql-performance@arkaria.postgresql.org; Tue, 12 Dec 2017 15:49:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eOmoD-0008Gs-KB for pgsql-performance@lists.postgresql.org; Tue, 12 Dec 2017 15:49:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eOmoB-0005LP-Cy for pgsql-performance@postgresql.org; Tue, 12 Dec 2017 15:49:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vBCFnPW1000888; Tue, 12 Dec 2017 10:49:25 -0500 From: Tom Lane To: "David G. Johnston" cc: Mariel Cherkassky , PostgreSQL mailing lists Subject: Re: PostgreSQL database size is not reasonable In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Tue, 12 Dec 2017 08:21:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <886.1513093765.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 12 Dec 2017 10:49:25 -0500 Message-ID: <887.1513093765@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Tue, Dec 12, 2017 at 8:15 AM, Mariel Cherkassky < > mariel.cherkassky@gmail.com> wrote: >> And the bigger question, Where are the missing 180G ? > ​In the toaster probably... pg_total_relation_size should have counted the toast tables, as well as the indexes, if memory serves. What I'm wondering about is the system catalogs, which Mariel's query explicitly excluded. 180G would be awful darn large for those, but maybe there's a bloat problem somewhere. Otherwise, try to identify the largest individual files in the database directory ... regards, tom lane