Re: get the data size of a large object

From: Stéphane Pinel <spinel(at)noos(dot)fr>
To: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: get the data size of a large object
Date: 2003-04-24 21:19:04
Message-ID: 6081F659-769A-11D7-BA3A-000A27AFF5D2@noos.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Le jeudi, 24 avr 2003, à 22:12 Europe/Paris, Jeroen T. Vermeulen a
écrit :

> On Thu, Apr 24, 2003 at 07:43:29PM +0200, Stéphane Pinel wrote:
>> Is there a way to get the data size of a large object ? I would like
>> to
>> be able
>> to read an entire large object using lo_read function. Since this
>> function needs
>> a "len" parameter as input, I have to know the size of the large
>> object...
>
> Just seek to the end, remember the return value, and seek back.
>

Oh yes, my question was so stupid. Thanks a lot !

------------------------------------------------------------------------
---
Stéphane Pinel
------------------------------------------------------------------------
---

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Nuno D. Leitao 2003-04-24 22:35:42 Connecting from Java to PostgreSQL
Previous Message Jeroen T. Vermeulen 2003-04-24 20:12:59 Re: get the data size of a large object