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

From Tom Lane
Subject Re: Dynamic loading of C functions
Date
Msg-id 796.1150837747@sss.pgh.pa.us
Whole thread Raw
In response to Re: Dynamic loading of C functions  (Bill Moran <wmoran@collaborativefusion.com>)
Responses Re: Dynamic loading of C functions
Re: Dynamic loading of C functions
List pgsql-general
Bill Moran <wmoran@collaborativefusion.com> writes:
> In response to "Jasbinder Bali" <jsbali@gmail.com>:
>> I get the follwing error
>> ERROR:  could not access file "/usr/include/pgsql/server/test_func": No such
>> file or directory

> Check the permissions.  Can the Postgres user read the file?

The error is pretty clearly "file not found", not "no permissions".

One possibility is that the complaint is not about this file itself
but about some other shared library it depends on.  Try "ldd" or
local equivalent on the file to see if it shows any unresolved
references.

Also, you might try looking in the postmaster log to see if any
additional info appears there --- anything the dynamic linker spit out
to stderr is not going to appear on your terminal.

            regards, tom lane

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Dynamic loading of C functions
Next
From: Bill Moran
Date:
Subject: Re: Dynamic loading of C functions