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

Re: create large object by tcl

From: L J Bayuk <ljb220(at)mindspring(dot)com>
To: hehe88hk(at)yahoo(dot)com(dot)hk (Eric)
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: create large object by tcl
Date: 2004-02-21 16:51:15
Message-ID: 200402211651.i1LGpFpL000747@mindspring.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
hehe88hk(at)yahoo(dot)com(dot)hk wrote:
> ...
> 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 message:
> 
> "
> 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 COMMIT.

Responses

pgsql-interfaces by date

Next:From: L J BayukDate: 2004-02-21 17:08:49
Subject: (admin) Is mail/news gateway working for this list?
Previous:From: L J BayukDate: 2004-02-21 01:57:25
Subject: Re: tcl on gborg

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