Name

ST_Mem_Size — Returns the amount of space (in bytes) the geometry takes.

Synopsis

integer ST_Mem_Size(bytea Geometry);

Alias

Mem_Size

Description

Returns the amount of space (in bytes) the geometry takes.

Coordinate Dimensions
2D3DM
Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006)SQL-MM Part 3
----

Examples

SELECT ST_Mem_Size(ST_GeomFromText('LINESTRING (1 1, 2 3, 3 2, 4 4)'));
--Result
73

Related functions