Re: [INTERFACES] problems with large-objects

Поиск
Список
Период
Сортировка
От Peter Mount
Тема Re: [INTERFACES] problems with large-objects
Дата
Msg-id Pine.LNX.4.10.9910041242220.17421-100000@maidast.retep.org.uk
обсуждение исходный текст
Ответ на Re: [INTERFACES] problems with large-objects  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-interfaces
On Sat, 2 Oct 1999, Thomas Lockhart wrote:

> > Of course I take an immediate look into the docs, and I found it: In the
> > sample program of the Large-Object-chapter (Chapter 15). Is this the
> > only place where it is documented? If this is the only place, then I
> > think, it should be mentioned in more places. Or can you tell me, where
> > I can read more about it?
> 
> I don't know. I just added a note to the top of the "Interfaces"
> portion of that chapter which mentions this explicitly. Maybe that is
> enough...

We need to add a reference to this in the JDBC docs, as I'm answering
quite a few "bug" reports where LargeObjects are not working.

For jdbc, you need to use the setAutoCommit() method to false.

ie:
Connection mycon;
...
mycon.setAutoCommit(false);
... now use Large Objects

I'm thinking of adding a more descriptive error message when LO's fail.

Peter

--      Peter T Mount peter@retep.org.uk     Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgresJava PDF Generator: http://www.retep.org.uk/pdf



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

Предыдущее
От: Dave Page
Дата:
Сообщение: RE: [INTERFACES] pgAdmin v6.5.2 Released
Следующее
От: Pablo Salazar Loaiza
Дата:
Сообщение: (no subject)