Method is a SQL script, using https://gis.stackexchange.com/a/250496/120129,
author for which part of its implementation.
- Create lines of approximately equal length from lines, the line must be ordered;
- Run the script:
WITH
tblb AS (SELECT id, ST_Buffer ((geom), 0.0001,'endcap=round join=round') as geom FROM <name_table>),
tblc_l AS (SELECT a.id, ST_LineMerge(ST_Difference(ST_ExteriorRing(a.geom), b.geom)) geom FROM tblb a LEFT JOIN tblb b ON (ST_Intersects(a.geom, b.geom) AND a.id < b.id)),
tblcpoly_l AS (SELECT id, ST_MakePolygon(ST_AddPoint(geom, ST_StartPoint(geom))) geom FROM tblc_l),
tbld_r AS (SELECT a.id, ST_LineMerge(ST_Difference(ST_ExteriorRing(a.geom), b.geom)) geom FROM tblb a LEFT JOIN tblb b ON (ST_Intersects(a.geom, b.geom) AND a.id > b.id)),
tbldpoly_r AS (SELECT id, ST_MakePolygon(ST_AddPoint(geom, ST_StartPoint(geom))) geom FROM tbld_r)
SELECT ST_Intersection(a.geom, b.geom) as geom FROM tblcpoly_l a, tbldpoly_r b
WHERE ST_Intersects (a.geom, b.geom) AND a.id=b.id;
- See the picture

Good luck to everyone :-),
Original solutions ...
This script is called - ST_BambooBuffer...