Обсуждение: lo_read??

Поиск
Список
Период
Сортировка

lo_read??

От
bdamato
Дата:
i have been able to import large objects into my database using

psql -c "insert into foo VALUES ('info', 'more info',
lo_import('/path/to/file'))"

where the last field in foo is an Oid.

How do i read that large object using psql?
i suspected it would be something like...

psql -c "select (lo_read(Oid)) from foo"

but I was wrong. Has anyone done this with psql?

bobd