Re: get the data size of a large object

From: "Jeroen T(dot) Vermeulen" <jtv(at)xs4all(dot)nl>
To: Stéphane Pinel <spinel(at)noos(dot)fr>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: get the data size of a large object
Date: 2003-04-24 20:12:59
Message-ID: 20030424201259.GA92437@xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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.

Jeroen

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Stéphane Pinel 2003-04-24 21:19:04 Re: get the data size of a large object
Previous Message Stéphane Pinel 2003-04-24 17:43:29 get the data size of a large object