BUG #13482: Unable SET DATA TYPE geometry(MultiPolygon) with other geometry type - Mailing list pgsql-bugs

From mailrsatish@gmail.com
Subject BUG #13482: Unable SET DATA TYPE geometry(MultiPolygon) with other geometry type
Date
Msg-id 20150703020315.1190.64921@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13482
Logged by:          Satish Rajesh
Email address:      mailrsatish@gmail.com
PostgreSQL version: 9.4.0
Operating system:   Ubuntu
Description:

Hi,

I am trying to the datatype to MultiPolygon but getting the below error due
other geometry type available in the table,

DDL Statement
-----------------
ALTER TABLE output.addresspoi_test ALTER COLUMN geom SET DATA TYPE
geometry(MultiPolygon) USING ST_Multi(geom);

ERROR:  Geometry type (MultiSurface) does not match column type
(MultiPolygon)

 geometrytype |  count
--------------+---------
 MULTIPOLYGON | 3541837
 MULTISURFACE |      37
(2 rows)


Regards,
Satish Rajesh

pgsql-bugs by date:

Previous
From: bailuding@gmail.com
Date:
Subject: BUG #13481: No config folder upon installation
Next
From: Michael Paquier
Date:
Subject: Re: BUG #13368: standby cluster immediately promotes after pg_basebackup from previously promoted master