Skip site navigation (1) Skip section navigation (2)

Re: Possible Bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chuck Handshy" <chuck(dot)handshy(at)gcinet(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Possible Bug
Date: 2002-02-19 20:33:12
Message-ID: 15416.1014150792@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Chuck Handshy" <chuck(dot)handshy(at)gcinet(dot)net> writes:
> When you pass a oid to the lo_open it doesn't seem to be able to accept
> it and cause and error to be generated in the log file: ERROR:
> lo_lseek: invalid large obj descriptor (0) <- Note descriptor (0), I
> passed 16832 to it as the oid.

Descriptor 0 is fine.

I suspect you have forgotten to establish a transaction block
(begin/end) around the LO operations.  The descriptor returned by
lo_open is only good for the duration of the transaction block.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-02-19 21:36:49
Subject: Re: Postgresql 7.1.3 not thread safe
Previous:From: Tom LaneDate: 2002-02-19 20:24:59
Subject: Re: Compiling error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group