错误:无法访问文件“$ libdir / postgis-2.0”postgresapp

时间:2013-08-28 23:04:54

标签: sql postgresql postgis

我正在运行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

1 个答案:

答案 0 :(得分:1)

重新安装postgress.app,包括应用程序支持文件修复了问题。