I downloaded planet_osm for a small area from geofabrik. Using osm2pgsql, extracted the data to the PostgreSQL database.
Used Geoserver to publish osm_lines and osm_roads layer with basic line styling.
Now I want to mark a small portion of a road as closed / place a barrier on that portion (marked in red).
The road from Point A to B is one road with an OSM_ID.
Making the barrier=yes for the road will mark the entire road as closed.
How can I achieve this?