Ticket #1413 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

COPY into typmod table fails on OSX

Reported by: pramsey Owned by: pramsey
Priority: critical Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: osx Cc:

Description

From the loader regression:

CREATE TABLE "point" (gid serial);
ALTER TABLE "point" ADD PRIMARY KEY (gid);
SELECT AddGeometryColumn('','point','geom','0','POINT',2);
COPY "point" (geom) FROM stdin;
POINT(0 1)
\.

returns

ERROR:  Geometry type (Invalid type) does not match column type (Point)
CONTEXT:  COPY point, line 1, column geom: "POINT(0 1)"

Change History

Changed 17 months ago by pramsey

  • status changed from new to closed
  • resolution set to fixed

Actually this was a larger problem with how the in/out functions were handling the postgis_valid_typmod function. They were freeing an lwgeom and then calling postgis_valid_typmod on it. So on system with looser memory handling, the data was still there and things worked. On OSX they didn't. I've changed postgis_valid_typmod to work on gserialized instead, which should hopefully be a better design in any event. Committed at r8615

Note: See TracTickets for help on using tickets.