X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9627D474E42 for ; Thu, 24 Apr 2003 16:13:35 -0400 (EDT) Received: from mxzilla3.xs4all.nl (mxzilla3.xs4all.nl [194.109.6.49]) by postgresql.org (Postfix) with ESMTP id 54FC4476387 for ; Thu, 24 Apr 2003 16:13:04 -0400 (EDT) Received: from xs1.xs4all.nl (xs1.xs4all.nl [194.109.3.11]) by mxzilla3.xs4all.nl (8.12.3/8.12.3) with ESMTP id h3OKD5IS063847; Thu, 24 Apr 2003 22:13:05 +0200 (CEST) Received: from xs1.xs4all.nl (jtv@localhost.xs4all.nl [127.0.0.1]) by xs1.xs4all.nl (8.12.9/8.11.6) with ESMTP id h3OKD5GF092675; Thu, 24 Apr 2003 22:13:05 +0200 (CEST) (envelope-from jtv@xs1.xs4all.nl) Received: (from Unknown UID 8109@localhost) by xs1.xs4all.nl (8.12.9/8.12.8/Submit) id h3OKCxDe092659; Thu, 24 Apr 2003 22:12:59 +0200 (CEST) (envelope-from jtv) Date: Thu, 24 Apr 2003 22:12:59 +0200 From: "Jeroen T. Vermeulen" To: =?iso-8859-1?Q?St=E9phane?= Pinel Cc: pgsql-interfaces@postgresql.org Subject: Re: get the data size of a large object Message-ID: <20030424201259.GA92437@xs4all.nl> Mail-Followup-To: =?iso-8859-1?Q?St=E9phane?= Pinel , pgsql-interfaces@postgresql.org References: <42A8B512-767C-11D7-8C23-000A27AFF5D2@noos.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <42A8B512-767C-11D7-8C23-000A27AFF5D2@noos.fr> User-Agent: Mutt/1.4.1i Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-38.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/161 X-Sequence-Number: 4100 On Thu, Apr 24, 2003 at 07:43:29PM +0200, St=E9phane Pinel wrote: > Is there a way to get the data size of a large object ? I would like to= =20=20 > be able > to read an entire large object using lo_read function. Since this=20=20 > function needs > a "len" parameter as input, I have to know the size of the large=20=20 > object... Just seek to the end, remember the return value, and seek back. Jeroen