Re: [GENERAL] Large objects

From: Peter Mount <pgsqlgen(at)retep(dot)org(dot)uk>
To: Kurt Seel <kseel(at)utcorp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Large objects
Date: 1998-06-28 08:32:47
Message-ID: Pine.LNX.3.95.980628092759.30438A-100000@retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)retep(dot)org(dot)uk or petermount(at)earthling(dot)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(at)maidstone(dot)gov(dot)uk

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brian 1998-06-28 16:33:24 vacuuming
Previous Message Kevin Heflin 1998-06-28 04:07:16 Error message