There is a special tag
'way_area' in osm2pgsql creating a database column that stores the area of polygon features. So is there something like this for calculation of length of line objects?
No, but use can use PostGIS function
ST_Length for that. It returns length in meters if
way field is of geography type. That is, to get length in meters, convert it: