ST_PointM — Creates a Point with X, Y, M and SRID values.
geometry ST_PointM(
float x, float y, float m, integer srid=unknown)
;
Returns an Point with the given X, Y and M coordinate values, and optionally an SRID number.
Enhanced: 3.2.0 srid as an extra optional argument was added. Older installs require combining with ST_SetSRID to mark the srid on the geometry.