我有一个GRIB2文件,我希望使用raster2pgsql将其存储到postgresql中,当我使用以下代码时:
raster2pgsql -s 4326 -I -b 1 -C -M gfs.tmp.grb2 grib_raster_test_msl00 | psql -U razaiOS -d template_postgis
然后告诉我错误:
BEGIN
ERROR: type "raster" does not exist
LINE 1: ...raster_test_msl00" ("rid" serial PRIMARY KEY,"rast" raster);
^
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: current transaction is aborted, commands ignored until end of transaction block
ROLLBACK
VACUUM
我不知道如何添加类型" raster",任何人都可以帮我解决这个问题。非常感谢。