Re: Dynamic loading of C functions: Badly stuck - Mailing list pgsql-general

From Jasbinder Bali
Subject Re: Dynamic loading of C functions: Badly stuck
Date
Msg-id a47902760606210949j5a1793devc915c16b522e3fad@mail.gmail.com
Whole thread Raw
In response to Re: Dynamic loading of C functions: Badly stuck  (Joe Conway <mail@joeconway.com>)
Responses Re: Dynamic loading of C functions: Badly stuck
List pgsql-general
Yes, that helped. I was missing that leading '/'

Now the error is different. It cries something on the permissions.

ERROR:  could not load library "/usr/include/pgsql/server/test.so": /usr/include/pgsql/server/test.so: failed to map segment from shared object: Permission denied

Can you comment on this?

Thanks,
~Jas

On 6/21/06, Joe Conway <mail@joeconway.com> wrote:
Jasbinder Bali wrote:
>     CREATE FUNCTION command(integer) RETURNS integer
>      AS 'usr/include/pgsql/server/test_func', 'command'
>      LANGUAGE C STRICT;
>
> when i try to run this function, always gives me the follwoing error:
>
> ERROR:  could not access file "usr/include/pgsql/server/test_func": No
> such file or directory

Should 'usr/include/pgsql/server/test_func' actually be
'/usr/include/pgsql/server/test_func'?

Note the leading '/'

HTH,

Joe

pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: Dynamic loading of C functions: Badly stuck
Next
From: Steve Atkins
Date:
Subject: Re: Dynamic loading of C functions: Badly stuck