Re: pqlib large object error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pqlib large object error
Дата
Msg-id 26209.1213139125@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pqlib large object error  (Edward Amsden <amsden_linux@embarqmail.com>)
Ответы Re: pqlib large object error  (Edward Amsden <amsden_linux@embarqmail.com>)
Список pgsql-interfaces
Edward Amsden <amsden_linux@embarqmail.com> writes:
> On Tue, 2008-06-10 at 16:49 -0400, Tom Lane wrote:
>> Hmph.  The only thing I can think of is that that index is corrupt,
>> but it seems unlikely that it would be so in all databases.  What
>> happens if you REINDEX pg_largeobject?

> The error has disappeared.

Hmm, so something did happen to your index.

> Now it can't write to the object. lo_open
> seems to be successful, but lo_write is failing with:
>> ERROR:  invalid large-object descriptor: 0

You forgot to put the open-and-use-descriptor sequence inside a 
BEGIN block.
        regards, tom lane


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

Предыдущее
От: Edward Amsden
Дата:
Сообщение: Re: pqlib large object error
Следующее
От: Edward Amsden
Дата:
Сообщение: Re: pqlib large object error