Re: Table size does not include toast size - Mailing list pgsql-hackers

From Rafael Martinez
Subject Re: Table size does not include toast size
Date
Msg-id 4B2F9972.7050901@usit.uio.no
Whole thread Raw
In response to Re: Table size does not include toast size  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Lane wrote:
> Rafael Martinez <r.m.guerrero@usit.uio.no> writes:
>> I am probably missing the point here, why is it not supposed to show the
>> size of the table(data) *without* indexes?
> 
> Because pg_relation_size is defined at the "physical" level of showing
> one relation, where relation means a pg_class entry.  If you want
> agglomerations of multiple relations, you can use
> pg_total_relation_size, 


Ok, thanks for the clarification :-)

The 'problem' is that as a developer with advanced knowledge of the
postgres internals, you see a table as a group of relations (toast,
indexes, toast relation's index, etc)

A 'normal' user only sees a table and its indexes and this user
misinterpret the use of the function "pg_relation_size() when it reads
in the documentation "pg_relation_size(): Disk space used by the table
or index ... "

regards,
- --Rafael Martinez, <r.m.guerrero@usit.uio.no>Center for Information Technology ServicesUniversity of Oslo, Norway
PGP Public Key: http://folk.uio.no/rafael/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFLL5lwBhuKQurGihQRApt1AJ4wQS9+WSiUSAB6sSV6i/z0y0gZhwCfWq1Y
BnnbddNedMMGCUGJ+X4eMMY=
=yUsa
-----END PGP SIGNATURE-----


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Small Bug in GetConflictingVirtualXIDs
Next
From: "David E. Wheeler"
Date:
Subject: Re: Minimum perl version supported