我正在运行postgresapp 9.2.4.3和postgis,并试图将几何列添加到表中。postgis扩展正在运行。
当我跑步时:
SELECT AddGeometryColumn('public'::varchar,'gloutline'::varchar,'geom'::varchar,'4326','MULTIPOLY ON','2');
我得到以下错误:
ERROR: could not access file "$libdir/postgis-2.0": No such file or directory
LINE 1: ALTER TABLE public.gloutline ADD COLUMN geom geometry(MultiP...
QUERY: ALTER TABLE public.gloutline ADD COLUMN geom geometry(MultiPolygon, 4326)
CONTEXT: PL/pgSQL function addgeometrycolumn(character varying,character varying,character varying,character varying,integer,character varying,integer,boolean) line 110 at EXECUTE statement
SQL statement "SELECT AddGeometryColumn('',$1,$2,$3,$4,$5,$6,$7)" PL/pgSQL function addgeometrycolumn(character varying,character varying,character varying,integer,character varying,integer,boolean) line 5 at SQL statement
最佳答案
重新安装postgress.app(包括应用程序支持文件)解决了此问题。
关于sql - 错误:无法访问文件“$ libdir/postgis-2.0” postgresapp,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18499728/