geomunion SELECT ST_Union( 'POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 'POLYGON((5 5, 15 5, 15 7, 5 7, 5 5))' );