Re: [HACKERS] problem with fe/be protocol and large objects

2001-03-13 Thread Eric Marsden
> "tl" == Tom Lane <[EMAIL PROTECTED]> writes: ecm> ERROR: lo_tell: invalid large object descriptor (0) tl> Are you remembering to wrap this sequence in a transaction block tl> (begin/end)? LO descriptors are only valid till end of tl> transaction. that was it, thanks. The code use

Re: [HACKERS] problem with fe/be protocol and large objects

2001-03-13 Thread Tom Lane
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 t

Re: [HACKERS] problem with fe/be protocol and large objects

2001-03-13 Thread Denis Perchine
On Monday 12 March 2001 03:24, Eric Marsden wrote: > I am trying to debug my socket-level interface to the backend, which > implements the 6.4 protocol. It works for general queries, but I have > a problem with large objects. > > lo_create and lo_unlink seem to work OK; I get an oid which looks ok

[HACKERS] problem with fe/be protocol and large objects

2001-03-13 Thread Eric Marsden
I am trying to debug my socket-level interface to the backend, which implements the 6.4 protocol. It works for general queries, but I have a problem with large objects. lo_create and lo_unlink seem to work OK; I get an oid which looks ok and there is a corresponding xinv??? file in the base/ dire