Wei Weng <wweng(at)kencast(dot)com> writes:
> When I run psql < tsearch2.sql, is psql going to substitute $libdir
> internally with what $libdir really is (in my case, it would be
> /usr/lib/pgsql)?
Not psql, the backend. The point of this is that your CREATE FUNCTION
definition can be platform-independent ...
regards, tom lane