pg module, lo problem

Alexei Zalivine zalivin at krona.obninsk.ru
Tue Jan 23 11:53:29 EST 2001


"Cliff Crawford" <cjc26 at nospam.cornell.edu> wrote in message
news:js_a6.1233$ju6.158595 at typhoon.nyroc.rr.com...
> * Alexei Zalivine <zalivin at krona.obninsk.ru> menulis:
> | Hi,
> |
> | I have a problem with large object in pg module. Anybody work with LO?
> |
> | After locreate function, object not opened. If I try to open, pg.error
sad,
> | that it can't be opened. All functions work only with opened objects,
exept
> | export.
> | I use Mandrake 7.0 Linux, pg version 3.1 and python version 1.5.2.
Please
> | help me, because I alredy started project, and can't choose other DB.
>
> In PostgreSQL you have to use large objects within a transaction.  So,
> you should do a pg.query("BEGIN;") before locreate, and a
> pg.query("COMMIT;") after you close the large object.
Thank you! It really work. But I don't found about it in documentation.

Alexei.





More information about the Python-list mailing list