From: | "Jasbinder Bali" <jsbali(at)gmail(dot)com> |
---|---|
To: | "Joe Conway" <mail(at)joeconway(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Dynamic loading of C functions: Badly stuck |
Date: | 2006-06-21 16:49:26 |
Message-ID: | a47902760606210949j5a1793devc915c16b522e3fad@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)joeconway(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Atkins | 2006-06-21 16:56:45 | Re: Dynamic loading of C functions: Badly stuck |
Previous Message | Joe Conway | 2006-06-21 16:46:44 | Re: Dynamic loading of C functions: Badly stuck |