Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gor8j-00056K-LU for pgsql-performance@arkaria.postgresql.org; Wed, 30 Jan 2019 14:46:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gor8i-0004CM-3e for pgsql-performance@arkaria.postgresql.org; Wed, 30 Jan 2019 14:46:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gor8h-0004CB-OD; Wed, 30 Jan 2019 14:46:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gor8f-0002Rz-8P; Wed, 30 Jan 2019 14:46:54 +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 x0UEkn96007400; Wed, 30 Jan 2019 09:46:49 -0500 From: Tom Lane To: "Jehan-Guillaume (ioguix) de Rorthais" cc: Tumasgiu Rossini , Mariel Cherkassky , pgsql-admin@lists.postgresql.org, pgsql-performance@lists.postgresql.org Subject: Re: pgstattupple vs pg_total_relation_size In-reply-to: <20190130142701.38992d60@firost> References: <20190130142701.38992d60@firost> Comments: In-reply-to "Jehan-Guillaume (ioguix) de Rorthais" message dated "Wed, 30 Jan 2019 14:27:01 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7398.1548859609.1@sss.pgh.pa.us> Date: Wed, 30 Jan 2019 09:46:49 -0500 Message-ID: <7399.1548859609@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Jehan-Guillaume (ioguix) de Rorthais" writes: > On Wed, 30 Jan 2019 14:19:52 +0100 > Tumasgiu Rossini wrote: >> According to the doc [1], >> pg_total_relation_size add toasted data *and* indexes to the mix. > *and* FSM *and* VM. Yeah. In this particular case, the other page presumably belongs to the toast table's index, which will have a metapage even if the table is empty. regards, tom lane