Hi there<div><br></div><div>I'm running Postgresql 8.4 with postgis 1.5.</div><div>I have a table that contains roughly 2000 records.</div><div>The geometry in the table is a polygon.</div><div><br></div><div>I can run the following query with no problems</div>
<div><br></div><div>select the_geom from mytable;</div><div><br></div><div>However when I run something like this:</div>
<div><br></div><div>select st_centroid(the_geom) from mytable;
</div><div><br></div><div>or </div><div><br></div><div>select st_isvalid(the_geom) from mytable;
</div><div><br></div><div>I get the following error everytime:</div><div><br></div><div>2012-07-19 17:23:47 BST LOG:  server process (PID 19445) was terminated by signal 11: Segmentation fault</div><div><div>2012-07-19 17:23:47 BST LOG:  terminating any other active server processes</div>
<div>2012-07-19 17:23:47 BST LOG:  all server processes terminated; reinitializing</div><div>2012-07-19 17:23:47 BST LOG:  database system was interrupted; last known up at 2012-07-19 17:23:33 BST</div><div>2012-07-19 17:23:47 BST LOG:  database system was not properly shut down; automatic recovery in progress</div>
<div>2012-07-19 17:23:47 BST LOG:  record with zero length at 1406/B6388B94</div><div>2012-07-19 17:23:47 BST LOG:  redo is not required</div><div>2012-07-19 17:23:47 BST LOG:  autovacuum launcher started</div><div>2012-07-19 17:23:47 BST LOG:  database system is ready to accept connections</div>
</div><div><br></div><div><br></div><div>If I limit the query to 100 records it works.</div><div><br></div><div>In the same table I have another geometry that is a point. When I run the st_isvalid against that, it does not error. </div>
<div><br></div><div>What is strange is this has only just started happening. I thought it was a hardware issue, so I completely dumped the database and recreated it on another server but the issue persisted. I'm not sure what I have done wrong.</div>
<div><br></div><div><br></div><div>The data originates from an mdb. The geom's were stored as OLE Objects. When I imported them into postgres they were bytea. I converted them with st_geomfromewkb(the_geom). </div><div>
<br></div><div>Any help or directions on where I can go to figure out how to solve this issue would be great.</div><div><br></div><div>Thanks</div><div><br></div><div>Rebecca</div><div><br></div><div><br></div><div><br></div>
<div><br></div>