我正在将数据库从 PostGIS 2.2.1 移动到 2.5.0 (PG 9.6)。我 pg_dumped 旧数据库并使用 pg_restore 导入它。
一切似乎都很好,但我遇到了这两个错误。这是我需要担心的事情还是可以忽略它们?
pg_restore: creating AGGREGATE "public.accum(geometry)"
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 4925; 1255 348862 AGGREGATE accum(geometry) aed
pg_restore: [archiver (db)] could not execute query: ERROR: type "pgis_abs" does not exist
Command was: CREATE AGGREGATE accum(geometry) (
SFUNC = public.pgis_geometry_accum_transfn,
STYPE = pgis_abs,
FINALFUNC = pgis_geometry_accum_finalfn
);
和..
pg_restore: creating AGGREGATE "public.makeline(geometry)"
pg_restore: [archiver (db)] Error from TOC entry 4927; 1255 348864 AGGREGATE makeline(geometry) aed
pg_restore: [archiver (db)] could not execute query: ERROR: type "pgis_abs" does not exist
Command was: CREATE AGGREGATE makeline(geometry) (
SFUNC = public.pgis_geometry_accum_transfn,
STYPE = pgis_abs,
FINALFUNC = pgis_geometry_makeline_finalfn
);