Navigation : PostGIS 3.4.3 Manual > ST_NumInteriorRing ST_NumInteriorRing ST_NumInteriorRing Prev 7.4. Geometry Accessors Next Name ST_NumInteriorRing — Returns the number of interior rings (holes) of a Polygon. Aias for ST_NumInteriorRings Synopsis integer ST_NumInteriorRing ( geometry a_polygon ) ; See Also ST_NumInteriorRings , ST_InteriorRingN