Re: [HACKERS] Use of inv_getsize in functions

2005-08-11 Thread Soeren Laursen
Hi, Red ears, looking down on my shoes! Well I code one getsize my self using inv_seek. Had disabled a lot of compiler warnings because I am reusing a lot of spaghetti code for testing etc. This was proberly a hint for starting to clean up the code. Regards, Søren > On Tue, Aug 09, 2005 at 10

Re: [HACKERS] Use of inv_getsize in functions

2005-08-10 Thread Alvaro Herrera
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 oth

Re: [HACKERS] Use of inv_getsize in functions

2005-08-10 Thread Michael Fuhr
On Tue, Aug 09, 2005 at 10:54:49PM +0200, Soeren Laursen wrote: > I have used other function calls like > inv_open with no problem, but when I load this modules I get: > > undefined symbol: inv_getsize Notice the word "static" in the definition of inv_getsize() in src/backend/storage/large_object

[HACKERS] Use of inv_getsize in functions

2005-08-10 Thread Soeren Laursen
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. The function is coded in C and goes like this: Datum blob_size(PG_FUNCTION_ARGS) { Oid blob_oid = PG_GETARG_OID(0); uint32 blobsize = 0; blobsize = inv_getsi