Thanks for your help and I can create and write to
large object by Tcl successfully.
(I find that the documentation has mentioned about
this and I overlooked it)
However, I would like to ask why a transaction is
needed for accessing large object?
--- L J Bayuk <ljb220(at)mindspring(dot)com> 的郵件內容：>
> > ...
> > If I use the libpgtcl library, I find it can only
> get a file
> > descriptor of '-1' returned by pg_lo_open.
> > If I use pgintcl, I find it can only get a file
> descriptor of '0'
> > returned by pg_lo_open, followed by an error
> > "
> > ERROR: lo_write: invalid large obj descriptor (0)
> > ...
> Are you doing all your large object calls inside
> transaction blocks,
> as required? If not, the large object descriptors
> will not be valid.
> Send BEGIN, operate on a large object, then send
In response to
pgsql-interfaces by date
|Next:||From: Cornelia Boenigk||Date: 2004-02-22 16:50:55|
|Subject: problem with cursur within a scriptfile|
|Previous:||From: greg||Date: 2004-02-22 12:33:34|
|Subject: DBD::Pg 1.32 ready for testing|