$libdir under linux - Mailing list pgsql-hackers

From Marios Vodas
Subject $libdir under linux
Date
Msg-id AANLkTi=pBARN0y36cyuSaOuP2evGZcPfupvsqzXyVnt3@mail.gmail.com
Whole thread Raw
Responses Re: $libdir under linux
List pgsql-hackers
I want to create this function:<br /><div style="margin-left:40px;font-family:courier new,monospace">CREATE OR REPLACE
FUNCTIONmyfunction(cstring)<br />RETURNS cstring AS<br />    '$libdir/mylib','myfunction'<br /> LANGUAGE 'C' IMMUTABLE
STRICT;<br/></div><br />In windows this is working fine and $libdir is substituted by the actual path. In linux it is
notsubstituted!<br />This is the error I get:<br /><div style="margin-left: 40px; font-family: courier new,monospace;">
ERROR: could not access file "$libdir/mylib": No such file or directory<br />SQL state: 58P01<br /></div><br />How do I
fixit?  

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