Re: TOASTed size - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: TOASTed size
Date
Msg-id 87wsrt5z29.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: TOASTed size  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: TOASTed size
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Simon Riggs <simon@2ndquadrant.com> writes:
>> I'm thinking that there isn't any way currently of working out how big a
>> compressed toast object is?
>
> pg_column_size() ?

I was going to send the same thing but I think he's looking for the compressed
size of *external* data.

In fact there isn't really any convenient way to find out something is stored
external. pg_column_size reports the toast raw size of externally stored data.

There does seem to be a need for a more general pg_column_info which returns a
tuple (external bool, rawsize integer, storedsize integer).

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: TOASTed size
Next
From: "Aftab Hussain"
Date:
Subject: Re: psql's describe command (for sequences) output improvement