Re: Large objects in web applications

Поиск
Список
Период
Сортировка
От 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  ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>)
Список 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 по дате отправления:

Предыдущее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: Re: index on a box
Следующее
От: "Gregory Wood"
Дата:
Сообщение: Re: Adding a NOT NULL column?