Re: [GENERAL] Large objects - Mailing list pgsql-general

From Peter Mount
Subject Re: [GENERAL] Large objects
Date
Msg-id Pine.LNX.3.95.980628092759.30438A-100000@retep.org.uk
Whole thread Raw
In response to Large objects  (Kurt Seel <kseel@utcorp.com>)
List pgsql-general
On Fri, 26 Jun 1998, Kurt Seel wrote:

> I am having trouble with writing to large objects.

>  I am not using lseek, as I have heard it is broken.

It shouldn't be broken. When I implemented them for JDBC, I used lseek to
get the object's size. It's worked fine (and that was just before 6.3 was
released).

> I simply read the whole thing into a buffer, edit it, and (attempt to)
> write it back out.

Should work. I assume (as you say you are not using lseek) that you are
closing the object, then reopening it before writing?

>  I am doing this from TCL.

I don't know how TCL does this, but do you get any error messages?

--
Peter T Mount peter@retep.org.uk or petermount@earthling.net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk


pgsql-general by date:

Previous
From: Kevin Heflin
Date:
Subject: Error message
Next
From: Brian
Date:
Subject: vacuuming