ERROR: type “geometry_dump“ already exists ERROR: type “spheroid“ already exists

   ERROR: type "geometry_dump" already exists
   ERROR: type "spheroid" already exists
   Postgresql will report a similar error as above when adding the postgis plug-in, which is rare.
   Reason: postgresql supports custom data types, creating data types such as "geometry_dump" and "spheroid" will conflict with the data types in postgis, so an error is reported


   The resulting scenario: the database with postgis data type is backed up, the postgis plug-in is uninstalled when restoring, and then the data type is automatically created.


   Solution: Delete the conflicting data type to add postgis plug-in
   drop type box2d, box2df, box3d, geography, geometry, geometry_dump, geomval, gidx, rastbandarg, raster, reclassarg, spheroid, summarystats, unionarg, valid_detail, agg_samealignment;


   Add: postgis plugin
   CREATE EXTENSION postgis;

Guess you like

Origin blog.csdn.net/weixin_45813351/article/details/130243835