I define a section by a part of a road that has no intersection. See image below:

I'd like to extract all sections from all the roads of my PostGIS database. This GIS database was created with osm2pgsl:
List of relations
Schema | Name | Type | Owner
--------+--------------------+-------+----------
public | geography_columns | view | postgres
public | geometry_columns | table | gis
public | planet_osm_line | table | postgres
public | planet_osm_nodes | table | postgres
public | planet_osm_point | table | postgres
public | planet_osm_polygon | table | postgres
public | planet_osm_rels | table | postgres
public | planet_osm_roads | table | postgres
public | planet_osm_ways | table | postgres
public | spatial_ref_sys | table | gis
(10 rows)
I've read an interesting post about detecting the intersections but I can't figure out how to create a table with sections.
Any help appreciated.