Re: Quickly calculating row size of a table?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jared Evans" <jnevans(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Quickly calculating row size of a table?
Date: 2005-10-26 14:54:53
Message-ID: 6118.1130338493@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jared Evans" <jnevans(at)gmail(dot)com> writes:
> dbn=# SELECT relname, relpages*8192/reltuples from pg_class where
> reltuples <> 0 and relname not like 'pg%';

That calculation lumps free space (and page header overhead and so on)
into the size of the tuples.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2005-10-26 15:09:45 Re: Need help with INOUT mis-understanding
Previous Message Devrim GUNDUZ 2005-10-26 14:40:14 Re: Where is the webaddress for the most recent postgresql