From: | Adam Ruth <adamruth(at)mac(dot)com> |
---|---|
To: | "Brett Maton" <brett(dot)maton(at)itaccounting(dot)co(dot)uk> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Column Sizes |
Date: | 2003-11-12 20:13:52 |
Message-ID: | BC2BD3FA-154C-11D8-94C7-000A959D1424@mac.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Nov 12, 2003, at 11:04 AM, Brett Maton wrote:
> Hi NG,
>
> How do I find out the size of a column ?
>
> I am retrieving large objects from the pg_largeobject table and
> creating a
> files, I would like to know the length of the data column so that I can
> implement buffering instead of writing hundreds of small chunks to
> disk.
>
> Any help would be appreciated.
>
> Thanks in advance,
>
> Brett
>
>
I always check for the size this way:
select sum(length(data)) from pg_largeobject where loid = xxx;
Or if you want to know the size of an individual page:
select pageno, length(data) from pg_largeobject where loid = xxx order
by pageno;
Hope this help,
Adam Ruth
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Ruth | 2003-11-12 20:19:24 | Re: Column Sizes |
Previous Message | Stephan Szabo | 2003-11-12 20:13:45 | Re: using NOLOCK cause Cartesian joins |