Re: [INTERFACES] jdbc, pgsql6.5.1, large objects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] jdbc, pgsql6.5.1, large objects
Дата
Msg-id 11032.933343063@sss.pgh.pa.us
обсуждение исходный текст
Ответ на jdbc, pgsql6.5.1, large objects  (John David Garza <garza@cjas.org>)
Список pgsql-interfaces
John David Garza <garza@cjas.org> writes:
> FastPath call returned ERROR:  lo_write: invalid large obj descriptor (0)

This is achieving FAQ status very rapidly.  6.5 enforces the rule that
large object descriptors can only be used within a single transaction.
(This rule has always been in the documentation, but prior releases
didn't check, and most of the time referring to an LO opened in an
old transaction would still work...)

So you need an explicit begin/end transaction around your lo_open ...
lo_close sequence.  In JDBC I think you gotta turn off autocommit,
but I'm not familiar enough with JDBC to quote exact commands for you.
        regards, tom lane


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

Предыдущее
От: John David Garza
Дата:
Сообщение: jdbc, pgsql6.5.1, large objects
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: [INTERFACES] jdbc, pgsql6.5.1, large objects