BUG #13482: Unable SET DATA TYPE geometry(MultiPolygon) with other geometry type

From: mailrsatish(at)gmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13482: Unable SET DATA TYPE geometry(MultiPolygon) with other geometry type
Date: 2015-07-03 02:03:15
Message-ID: 20150703020315.1190.64921@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13482
Logged by: Satish Rajesh
Email address: mailrsatish(at)gmail(dot)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

Browse pgsql-bugs by date

  From Date Subject
Next Message sammit.karekar 2015-07-03 05:43:00 BUG #13483: Installation fails
Previous Message bailuding 2015-07-03 01:54:41 BUG #13481: No config folder upon installation