Re: computing and updating the size of a table with large objects

Поиск
Список
Период
Сортировка
От Marco Bizzarri
Тема Re: computing and updating the size of a table with large objects
Дата
Msg-id 3f0d61c40708312258m3ca95dacmcd4704fcdc45b07d@mail.gmail.com
обсуждение исходный текст
Ответ на computing and updating the size of a table with large objects  ("Marco Bizzarri" <marco.bizzarri@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Out of Memory - 8.2.4
Следующее
От: "Ashish Karalkar"
Дата:
Сообщение: Export data to MS Excel