$libdir under linux - Mailing list pgsql-hackers

From Marios Vodas
Subject $libdir under linux
Date
Msg-id AANLkTi=pBARN0y36cyuSaOuP2evGZcPfupvsqzXyVnt3@mail.gmail.com
Whole thread
Responses Re: $libdir under linux
List pgsql-hackers
I want to create this function:
CREATE OR REPLACE FUNCTION myfunction(cstring)
RETURNS cstring AS
    '$libdir/mylib','myfunction'
LANGUAGE 'C' IMMUTABLE STRICT;

In windows this is working fine and $libdir is substituted by the actual path. In linux it is not substituted!
This is the error I get:
ERROR:  could not access file "$libdir/mylib": No such file or directory
SQL state: 58P01

How do I fix it?

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Debugging initdb breakage
Next
From: Tom Lane
Date:
Subject: Re: patch: psql variables tabcomplete