Re: \d+ not showing TOAST table size?

From: Jon Nelson <jnelson+pgsql(at)jamponi(dot)net>
To: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: \d+ not showing TOAST table size?
Date: 2011-09-20 19:28:19
Message-ID: CAKuK5J1ckv-a1O1_ihTfkkyviRSEh86h8UTXwfZJ2dEFDAsKJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 20, 2011 at 2:09 PM, Josh Kupershmidt <schmiddy(at)gmail(dot)com> wrote:
> On Tue, Sep 20, 2011 at 1:26 PM, Jon Nelson <jnelson+pgsql(at)jamponi(dot)net> wrote:
>> I have a table with a fair bit of TOAST data in it.
>> I noticed that \d+ does /not/ include that information (but
>> pg_total_relation_size does).
>
> I assume by "\d+" you meant "\dt+" (\d+ doesn't show sizes at all). On
> version 9.0 and up, \dt+ uses pg_relation_size() internally, which
> actually does include TOAST data as this comment in dbsize.c explains:

I meant "\d+". I'm using 9.0.3 and "\d+" clearly shows sizes.
Per Tom Lane's comments later in the thread, the behavior of 9.0 (and
prior) matches my recollection. I just need to wait for 9.1.

Thanks!

--
Jon

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Hawn 2011-09-20 19:30:27 Re: Column Privileges: NULL instead of permission denied
Previous Message patrick keshishian 2011-09-20 19:22:14 Re: Dynamic constraint names in ALTER TABLE