Quick temperature-of-the-room ST_AsGeoJSON(record) or row_to_geojson(record) The latter apes the existing pgsql json pattern row_to_json(). The former apes our old patterns. I guess there's always that old open source standby: both. Thoughts? P