Re: Quickly calculating row size of a table? - Mailing list pgsql-general

From Tom Lane
Subject Re: Quickly calculating row size of a table?
Date
Msg-id 6118.1130338493@sss.pgh.pa.us
Whole thread Raw
In response to Re: Quickly calculating row size of a table?  ("Jared Evans" <jnevans@gmail.com>)
List pgsql-general
"Jared Evans" <jnevans@gmail.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Need help with INOUT mis-understanding
Next
From: Tony Caduto
Date:
Subject: Re: Need help with INOUT mis-understanding