Re: computing and updating the size of a table with large objects
В списке pgsql-general по дате отправления:
| От | Daniel Verite |
|---|---|
| Тема | Re: computing and updating the size of a table with large objects |
| Дата | |
| Msg-id | 20070831201236.6541874@debian обсуждение исходный текст |
| Ответ на | computing and updating the size of a table with large objects ("Marco Bizzarri" <marco.bizzarri@gmail.com>) |
| Список | pgsql-general |
Marco Bizzarri wrote: > Tabella "public.documenti" > Colonna | Tipo | Modificatori > ---------+-----------------------+-------------- > id_doc | character varying(50) | not null > file | oid | > kind | integer | not null > size | bigint | > Indici: > "documenti_pkey" chiave primaria, btree (id_doc, kind) > > (sorry for the mixed language output) > > I need to populate the size attribute with the size of the large object in file. 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера