Re: problem with fe/be protocol and large objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Eric Marsden <emarsden(at)mail(dot)dotcom(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with fe/be protocol and large objects
Date: 2001-03-13 15:52:27
Message-ID: 19497.984498747@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Eric Marsden <emarsden(at)mail(dot)dotcom(dot)fr> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-03-13 15:56:58 Re: Performance monitor
Previous Message Bruce Momjian 2001-03-13 15:49:29 Re: Re: Performance monitor'