ST_Equals, this function checks representation rather than two-dimensional topological equality. Unlike ST_EqualsExact, it compares Z and M and does not accept a tolerance.
Signatures
Parameters
Geometry
required
The first geometry.
Geometry
required
The second geometry.
Return type
Returns
true when the geometry representations are identical, false otherwise, or NULL if either input is NULL.Visual examples
Structure and coordinate order
The inputs are shown separately so their traversal direction and container structure are easy to compare. Geometries can occupy the same locations and still be non-identical when their vertex order, geometry type, or nesting differs.Z, M, and ZM dimensions
The coordinate layout is part of a geometry’s identity.POINT Z (1 2 3) and
POINT M (1 2 3) contain the same numeric values, but the third ordinate has a different role.
For ZM geometries, both the Z and M values participate in the comparison.

