Re: Use of inv_getsize in functions

From: "Soeren Laursen" <sl(at)scrooge(dot)dk>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Use of inv_getsize in functions
Date: 2005-08-11 08:23:51
Message-ID: 42FB2737.1191.74705E@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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: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/inv_api.c:
>
> static uint32
> inv_getsize(LargeObjectDesc *obj_desc)
> {
> ...
> }
>
> I don't know if there's a good reason for inv_getsize() being static.
> Maybe your code could use inv_seek() instead.
>
> > No errors when compiling.
>
> If you compile with warning flags, then you should at least have
> gotten a warning like "implicit declaration of function `inv_getsize'".
> That's a hint that something's wrong.
>
> --
> Michael Fuhr
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Westmacott 2005-08-11 13:26:37 Re: Planner doesn't look at LIMIT?
Previous Message Kim Bisgaard 2005-08-11 06:53:36 Project proposal/comments please - query optimization