Postgis recipe: Extracting MULTILINESTRING into LINESTRING