large objects. I can create them and destroy them, but can't open them to
read or write. Here is some sample code from the interactive prompt:
import pg
db=pg.connect(blah...)
bigobj = db.locreate(pg.INV_READ|pg.INV_WRITE)
bigobj.oid
db=pg.connect(blah...)
bigobj = db.locreate(pg.INV_READ|pg.INV_WRITE)
bigobj.oid
bigobj.open(pg.INV_READ|pg.INV_WRITE)
File "<stdin>", line 1, in ?
IOError: can't open large object.
bigobj.error
>>>
I've tried single constants too, instead of OR'ing them, but nothing seems
to work. I always get the lo_lseek error. I'm probably just doing something
wrong, but I don't know what.
Any ideas?
Thanks,
Jason Jones
[email protected]