Re: computing and updating the size of a table with large objects - Mailing list pgsql-general

From Marco Bizzarri
Subject Re: computing and updating the size of a table with large objects
Date
Msg-id 3f0d61c40708312258m3ca95dacmcd4704fcdc45b07d@mail.gmail.com
Whole thread Raw
In response to computing and updating the size of a table with large objects  ("Marco Bizzarri" <marco.bizzarri@gmail.com>)
List pgsql-general
On 8/31/07, Daniel Verite <daniel@manitou-mail.org> wrote:
>
> You can get the sizes from pg_largeobject, this way:
>
> SELECT id_doc, sum(length(data)) as filesize
> FROM documenti, pg_largeobject
> WHERE documenti.file = pg_largeobject.loid
> GROUP BY id_doc;
>
> --
>  Daniel
>  PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org
>

Thanks a lot for the suggestion: I didn't think to use the
pg_largeobject: much cleaner, now :-)

Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Out of Memory - 8.2.4
Next
From: "Ashish Karalkar"
Date:
Subject: Export data to MS Excel