Re: Simplfied Bytea input/output?

Поиск
Список
Период
Сортировка
Искать
От
Kris Jurka
Тема
Re: Simplfied Bytea input/output?
Дата
Msg-id
Pine.BSO.4.56.0408041436510.7043@leary.csoft.net
Ответ на
Список
Дерево обсуждения
Simplfied Bytea input/output? Jerry LeVan <jerry.levan@eku.edu>
Re: Simplfied Bytea input/output? Kris Jurka <books@ejurka.com>
Re: Simplfied Bytea input/output? Jerry LeVan <jerry.levan@eku.edu>
Re: Simplfied Bytea input/output? Jerry LeVan <jerry.levan@eku.edu>
Re: Simplfied Bytea input/output? David Rysdam <drysdam@ll.mit.edu>


On Wed, 4 Aug 2004, Jerry LeVan wrote:

> INSERT INTO image (name, raster)
>      VALUES ('beautiful image', bytea_import('/etc/motd'));
> 
> SELECT bytea_export(image.raster, '/tmp/motd') FROM image
>      WHERE name = 'beautiful image';
> 

Doing this kind of file/read write is only useful if the client and server 
are on the same machine which is a kind of limiting restriction if you are 
trying to make a generic data browsing tool.  Further any function that 
does file access like this must run with superuser permissions to prevent 
misuse which is another serious restriction.

Kris Jurka
В списке pgsql-general по дате отправления
От: David Rysdam
Дата:
Сообщение: Re: COPY not handling BLOBs
От: Martin Sarsale
Дата:
Сообщение: query result set caching
FAQ