From: | Doug McNaught <doug(at)mcnaught(dot)org> |
---|---|
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:36:49 |
Message-ID: | 87islpwcgu.fsf@asmodeus.mcnaught.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Brett Maton" <brett(dot)maton(at)itaccounting(dot)co(dot)uk> writes:
> 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.
Funny, there doesn't seem to be an lo_size() function--I was sure
there was one. I'm not sure if there's a way to find out the size of
a large object without reading it all.
If you just do lo_read() in a loop with a reasonably large buffer it
should be fairly efficient.
-Doug
From | Date | Subject | |
---|---|---|---|
Next Message | Doug McNaught | 2003-11-12 20:38:14 | Re: pl/perl function life and variable scope - concurrency problem? |
Previous Message | Scott Chapman | 2003-11-12 20:35:27 | Re: SQL-question: returning the id of an insert querry |