I have come across a documentation flaw in the Large
Object Interface Documentation of Postgres 6.5.1 (
chapter 15 of the Programmer's guide).
For me, lo_open() only worked from within a
transaction (but lo_creat() worked even outside a
transaction) .
However, chapter 15 doesn't say any such thing. The
sample program testlo.c from 15 chapter thus intiates
a transaction in main prior to calling ImportFile().
But there is no clarifying comment that the
transaction is really required.
Hope this helps,
alois
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com