Re: Another LargeObject problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Another LargeObject problem
Дата
Msg-id 8358.1059143280@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Another LargeObject problem  (Ole Streicher <ole-usenet-spam@gmx.net>)
Список pgsql-jdbc
Ole Streicher <ole-usenet-spam@gmx.net> writes:
> I have another Problem when using LargeObjects.
>> From time to time, I get the exception
> FastPath call returned ERROR:  lo_lseek: invalid large obj descriptor (369)
> What does this exception mean?

It means the descriptor you opened with lo_open isn't open anymore (or
that you're passing the wrong descriptor number, but the former is more
likely).  Descriptors are closed at transaction end, so you have to hold
open a transaction block for your entire lo_open .. lo_close sequence.

> It occurs randomly; a repeated retrieval works usually.

If it seems "random" then you are probably being careless with
connection pooling.  You've got to hold onto the same connection and
same transaction for as long as you're using the LO.

            regards, tom lane

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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: Another exception (Transaction level)
Следующее
От: Paul Thomas
Дата:
Сообщение: Re: Another exception (Transaction level)