Re: Dynamic loading of C functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill Moran <wmoran(at)collaborativefusion(dot)com>
Cc: "Jasbinder Bali" <jsbali(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Dynamic loading of C functions
Date: 2006-06-20 21:09:07
Message-ID: 796.1150837747@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Moran <wmoran(at)collaborativefusion(dot)com> writes:
> In response to "Jasbinder Bali" <jsbali(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2006-06-20 21:12:36 Re: Dynamic loading of C functions
Previous Message Brent Wood 2006-06-20 21:00:38 Re: Exporting data from view