I think I'd make a_table.geom be of type Geometry rather than Polygon, then after calculating the ConcaveHulls check the geometry types and modify those ones that are not polygons. You can use st_buffer to turn a point or a line into a polygon. David