Re: BUG #2823: API largeobject calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2823: API largeobject calls
Дата
Msg-id 21351.1165885102@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2823: API largeobject calls  ("Gregor" <gtm2@interia.pl>)
Список pgsql-bugs
"Gregor" <gtm2@interia.pl> writes:
> API funtions lo_open, lo_write, lo_import don't work.

You need to do lo_open/lo_write/etc inside a transaction block, because
the LO handle returned by lo_open is only good until end of transaction.
(And yes, zero is a valid handle.)  See the example program in the docs:
http://www.postgresql.org/docs/8.2/static/lo-examplesect.html
and note the begin/commit commands it issues.

            regards, tom lane

В списке pgsql-bugs по дате отправления: