Find Invalid Geometries

SELECT * FROM tablename WHERE NOT ST_IsValid(geometry);

Did this page help you?