While working on my precision issues I find that in postgis CVS, along with geos CVS select boundary(the_geom) from mytab; gives ERROR: lwgeom_from_geometry: unknown geometry type: 0 C.