$libdir under linux

From: Marios Vodas <mvodas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: $libdir under linux
Date: 2010-10-10 22:36:05
Message-ID: AANLkTi=pBARN0y36cyuSaOuP2evGZcPfupvsqzXyVnt3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2010-10-10 22:41:16 Re: Slow count(*) again...
Previous Message Neil Whelchel 2010-10-10 21:59:48 Re: Slow count(*) again...