GEOGRAPHY results are meters along great-circle edges. GEOMETRY results use the coordinate units of the input CRS.
Syntax
POLYGON and MULTIPOLYGON contribute their ring lengths. Polygon components inside a GEOMETRYCOLLECTION are summed recursively. Points and lines contribute zero.
NULL produces NULL; an EMPTY value produces 0. Malformed WKB, unsupported dimensions or descriptors, and topologically invalid inputs produce a controlled error. Spherical rings use the same smaller-region, winding-independent model described for ST_Area.