I have two geometries in different tables which look like the same, but one is valid and the other is invalid. I checked it out:
select ST_IsValid(_s.geom) a