Re: [GENERAL] Large objects

Поиск
Список
Период
Сортировка
От Peter Mount
Тема Re: [GENERAL] Large objects
Дата
Msg-id Pine.LNX.3.95.980628092759.30438A-100000@retep.org.uk
обсуждение исходный текст
Ответ на Large objects  (Kurt Seel <kseel@utcorp.com>)
Список 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 по дате отправления:

Предыдущее
От: Kevin Heflin
Дата:
Сообщение: Error message
Следующее
От: Brian
Дата:
Сообщение: vacuuming