From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Stéphane Pinel <spinel@noos.fr>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: get the data size of a large object
Date: Thu, 24 Apr 2003 22:12:59 +0200
Message-ID: <20030424201259.GA92437@xs4all.nl> (raw)
In-Reply-To: <42A8B512-767C-11D7-8C23-000A27AFF5D2@noos.fr>
References: <42A8B512-767C-11D7-8C23-000A27AFF5D2@noos.fr>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: jtv@xs4all.nl, spinel@noos.fr
Subject: Re: get the data size of a large object
In-Reply-To: <20030424201259.GA92437@xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox