简而言之,我的问题是"为什么$libdir在我的PSQL安装中不起作用。"
CREATE FUNCTION st_box2d_in(cstring) RETURNS box2d
AS '$libdir/liblwgeom', 'BOX2DFLOAT4_in'
LANGUAGE c IMMUTABLE STRICT;
产生了一个错误
could not access file "$libdir/liblwgeom": No such file or directory
< p >当...时CREATE FUNCTION st_box2d_in(cstring) RETURNS box2d
AS '/usr/local/pgsql/lib/liblwgeom', 'BOX2DFLOAT4_in'
LANGUAGE c IMMUTABLE STRICT;
正常工作。
输出为
% pg_config --pkglibdir
/usr/local/pgsql/lib
看起来是正确的。