Re: pgstattupple vs pg_total_relation_size

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jehan-Guillaume (ioguix) de Rorthais" <ioguix(at)free(dot)fr>
Cc: Tumasgiu Rossini <rossini(dot)t(at)gmail(dot)com>, Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org, pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: pgstattupple vs pg_total_relation_size
Date: 2019-01-30 14:46:49
Message-ID: 7399.1548859609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

"Jehan-Guillaume (ioguix) de Rorthais" <ioguix(at)free(dot)fr> writes:
> On Wed, 30 Jan 2019 14:19:52 +0100
> Tumasgiu Rossini <rossini(dot)t(at)gmail(dot)com> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message rammohan ganapavarapu 2019-01-30 22:58:02 Old WAL files under pg_xlog not getting delete
Previous Message Pepe TD Vo 2019-01-30 14:44:31 Re: ora2pg import

Browse pgsql-performance by date

  From Date Subject
Next Message Peter Geoghegan 2019-01-30 23:54:08 Re: How can sort performance be so different
Previous Message Mariel Cherkassky 2019-01-30 14:32:01 Re: pgstattupple vs pg_total_relation_size