Eric Marsden <[EMAIL PROTECTED]> writes:
> lo_open returns 0 as a file descriptor. However, following up with one
> of the other lo functions which take descriptor arguments (such as
> lo_write or lo_tell) fails with

>    ERROR:  lo_tell: invalid large object descriptor (0)

Are you remembering to wrap this sequence in a transaction block
(begin/end)?  LO descriptors are only valid till end of transaction.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to