Re: Use of inv_getsize in functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Use of inv_getsize in functions
Date
Msg-id 20050810152248.GB6847@alvh.no-ip.org
Whole thread Raw
In response to Use of inv_getsize in functions  ("Soeren Laursen" <sl@scrooge.dk>)
List pgsql-hackers
On Tue, Aug 09, 2005 at 10:54:49PM +0200, Soeren Laursen wrote:
> Hi,
> 
> I am programming a new set of functions for manipulation blobs, one
> of the functions is that I want to get the size of the blob.

Huh, we don't call them "blobs".  They are "large objects" in
PostgreSQL.

> I have used other function calls like
> inv_open with no problem, but when I load this modules I get:
> 
> undefined symbol: inv_getsize

That's because inv_getsize is declared as static.

I think it would be nice to export equivalent functionality, so one can
get the size of the LO without having to seek() and tell().

-- 
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"¿Que diferencia tiene para los muertos, los huérfanos, y aquellos que han
perdido su hogar, si la loca destrucción ha sido realizada bajo el nombre
del totalitarismo o del santo nombre de la libertad y la democracia?" (Gandhi)


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Use of inv_getsize in functions
Next
From: Andrew Dunstan
Date:
Subject: Re: small proposal: pg_config record flag variables?