1SELECT 1, ST_AsText(ST_Polygonize(
2'GEOMETRYCOLLECTION(
3  MULTILINESTRING(
4    (1656318.45 4833344.45,1656321.79 4833339.62,1656312.54 4833333.49),
5    (1656312.54 4833333.49,1656309.68 4833337.07)
6  ),
7  LINESTRING(1656309.68 4833337.07,1656318.45 4833344.45)
8)'::geometry));
9
10-- See ticket #1602
11SELECT 2, ST_AsEWKT(ST_Polygonize(
12'MULTILINESTRING((0 0 0, 0 10 0, 10 10 0),(10 10 0, 10 0 5, 0 0 0))'
13::geometry));
14