| От | Doug McNaught |
|---|---|
| Тема | Re: Column Sizes |
| Дата | |
| Msg-id | 87islpwcgu.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
| Ответ на | Column Sizes ("Brett Maton" <brett.maton@itaccounting.co.uk>) |
| Список | pgsql-general |
"Brett Maton" <brett.maton@itaccounting.co.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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера