Re: Dynamic loading of C functions: Badly stuck

From: Joe Conway <mail(at)joeconway(dot)com>
To: Jasbinder Bali <jsbali(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dynamic loading of C functions: Badly stuck
Date: 2006-06-21 16:46:44
Message-ID: 449977F4.6040206@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jasbinder Bali 2006-06-21 16:49:26 Re: Dynamic loading of C functions: Badly stuck
Previous Message Jasbinder Bali 2006-06-21 16:42:23 Dynamic loading of C functions: Badly stuck