Re: lo_import invalid large object descriptor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lo_import invalid large object descriptor
Дата
Msg-id 27436.1216054040@sss.pgh.pa.us
обсуждение исходный текст
Ответ на lo_import invalid large object descriptor  (Markus Mehrwald <mehrwald@ira.uka.de>)
Список pgsql-general
Markus Mehrwald <mehrwald@ira.uka.de> writes:
> I tried to insert an image in my database with lo_import. The error I
> get is "invalid large object descriptor: 0".

lo_import has to be called within a transaction block (BEGIN/COMMIT).
The documentation is not very clear about that :-(

(Actually, rather than fix the documentation we probably ought to fix
the code --- there's enough infrastructure in libpq now that it could
tell whether it needs to start its own transaction or not.)

            regards, tom lane

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

Предыдущее
От: "Fco. Mario Barcala" Rodríguez
Дата:
Сообщение: NEAR operator
Следующее
От: Viktor Rosenfeld
Дата:
Сообщение: UPDATE runs slow in a transaction