Search Postgresql Archives

Re: Dynamic loading of C functions: Badly stuck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux