| От | Tom Lane |
|---|---|
| Тема | Re: Large objects in web applications |
| Дата | |
| Msg-id | 3832.993579905@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Large objects in web applications (wsheldah@lexmark.com) |
| Ответы |
Re: Large objects in web applications
|
| Список | pgsql-general |
wsheldah@lexmark.com writes:
> Has there been any substantial change in the way large objects are
> handled with the coming of 7.1 and the expanded row size limit?
No change in the API (but 7.1 is more efficient under the hood).
> Assuming things haven't changed for large objects, it appears that to display an
> image, I'll need to:
> 1. select the image from postgresql, using lo_export() to save it to a uniquely
> named temp file (to avoid conflicts with other users).
If you just need to read the data, lo_export to a file and read the file
is certainly the hard way. Use lo_open/lo_read.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера